Skip to main content

How to Connect the GrowthOptix Tracking Script Using Google Tag Manager.

Using Google Tag Manager (GTM) to install the GrowthOptix tracking script ensures a clean, safe, no-code setup.

Luis Schiffmann avatar
Written by Luis Schiffmann
Updated over 2 weeks ago

It centralizes all tracking scripts in one place, allows fast updates without modifying your website code, and ensures that GrowthOptix receives consistent data from all user page views and referrers.

1. Copy your GrowthOptix Tracking Script.

  1. Log in to your GrowthOptix account.

  2. Go to Overview in Marketing Attribution.

3. Click the copy icon to copy your full tracking snippet.

You should see the text "Copied to Clipboard" as shown below.

IMPORTANT:

Every GrowthOptix script contains a unique identifierKey generated specifically for your account.

Do NOT use any example script as your production script.

Always copy your own snippet directly from your GrowthOptix dashboard.


2. Open Google Tag Manager and select your website container.

  1. Open Google Tag Manager in your browser.

  2. Select the correct account and container for your website. In this case, we used our staging website called GrowthOptix - Staging, but you should use your own.


3. Create a new Tag for the GrowthOptix Tracking Script

  1. In the left-hand sidebar, click Tags.

2. Click New to create a new tag.

We advise you to name your tag like: GrowthOptix Script or GrowthOptix Tracking Script.


4. Set the Tag Type to Custom HTML

Inside the new tag:

  1. Click Tag Configuration.

2. Select Custom HTML.

3. Paste your GrowthOptix tracking script inside the HTML editor.

IMPORTANT

Below is an example snippet ONLY so you can see what the script structure looks like.

Your real script will include your unique identifierKey from GrowthOptix.

Example script for demonstration:

<script>
var script = document.createElement('script');
script.src = 'https://cdn-staging.growthoptix.com/tracking/index.iife.js';
script.defer = true;
script.onload = function() {
window.GrowthOptix.init({
identifierKey: 'Eblyi6SWCC', // Example only — your key will be different
});
};
document.head.appendChild(script);
</script>
<!-- End of example script -->

5. Set the Trigger to fire on every page view

  1. Scroll to Triggering.

2. Add a new trigger and Choose All Pages → Page View.

This ensures GrowthOptix tracks every page view across your entire website.


6. Save your Tag

Click Save to store your new tag.


7. Publish your container changes

  1. Click Submit in the top-right corner.

2. Click Publish.

3. (Optional) Add a descriptive name or skip this step and click on Continue.

4. GrowthOptix Tracking Script is all set on Google Tag Manager.


8. Verify the installation inside GrowthOptix.

  1. Return to GrowthOptix.

  2. Go to the script verification section.

  3. Click on Continue to Verification.

4. Enter your website URL and click Test.

5. GrowthOptix will open your site, detect the tracking script, and confirm it is installed.

Note about verification when using Google Tag Manager

If you installed the GrowthOptix tracking script via Google Tag Manager, the Verify button inside GrowthOptix may not be able to detect it correctly.

This verification is designed primarily for scripts that are embedded directly in your site’s code (without GTM).

To confirm that your GTM setup is working:

Use GTM Preview mode to check that the tag is firing, and check your GrowthOptix dashboards (e.g., page views, landing pages, referrers) to see if data is coming in.


9. Confirm that real data is flowing into your dashboards

Go to your GrowthOptix dashboards and check:

  • Landing Pages.

  • Referrers.

  • Page Views.

If you see page views appearing, your installation is complete.

The Status should say: “✅ Verified” as shown below.


What this setup enables next

With your tracking script installed, you can now:

  • Track all page views across your product or website.

  • Monitor referrers and landing page performance.

  • Configure custom events inside GTM.

  • Unlock real-time analytics and marketing attribution inside GrowthOptix.

  • Gain full visibility into user journeys and conversions.


Final Thoughts

Installing the GrowthOptix tracking script via Google Tag Manager provides a stable, scalable, and no-code installation that maintains clean and accurate analytics.

Once installed, data will begin flowing into GrowthOptix automatically.

Did this answer your question?