How to Install Opinafy with Google Tag Manager
Add verified customer testimonials to any website using Google Tag Manager. Ideal if you already use GTM to manage your scripts.
Create your Opinafy project
- Sign up for Opinafy (it's free).
- Go to the Dashboard and click "New Project".
- Enter your website name and customize the collection form.
- Copy your Project ID from the dashboard.
Create a Custom HTML tag in GTM
- Open Google Tag Manager and sign in.
- Select your container.
- Go to Tags and click "New".
- Name it: "Opinafy Testimonials Widget".
- In Tag Configuration, select "Custom HTML".
- Paste the following code:
<div id="opinafy-widget" data-project="YOUR_PROJECT_ID"></div>
<script src="https://opinafy.com/widget.js" defer></script>Replace YOUR_PROJECT_ID with your actual project ID.
Configure the trigger
- In the "Triggering" section, click to select a trigger.
- Choose "All Pages - Page View" if you want the widget on all pages.
- Or create a custom trigger for specific pages:
- Type: Page View
- Condition: Page URL contains the desired path (e.g.,
/testimonials)
Publish the changes
- Save the tag.
- Click "Submit" in the top-right corner.
- Add a version name (e.g., "Add Opinafy widget").
- Click "Publish".
Tip: Use GTM's "Preview" mode before publishing to verify the tag fires correctly on the desired pages.
Verify it works
- Visit your website in an incognito window.
- The widget should load with your approved testimonials.
- If you don't see anything, check GTM's Preview mode to verify the tag is firing.
- Verify the Project ID is correct.
Frequently Asked Questions
Is it better to use GTM or paste the code directly?
If you already use GTM, it's more convenient to manage it from there. If you don't use GTM, pasting the code directly is simpler. Both methods work equally well.
Does the widget load with a delay when using GTM?
The delay is minimal (milliseconds). GTM loads the script asynchronously, just like direct installation.
Can I control which pages show the widget?
Yes. That's one of the advantages of using GTM: you can create triggers to show the widget only on specific pages.
Does it work with any website?
Yes. If your site has Google Tag Manager installed, you can use this method regardless of the platform (WordPress, Shopify, custom site, etc.).
Ready to add testimonials with GTM?
Create your free account and start showing social proof on your site in minutes.