Skip to main content

Custom funnel or self-hosted pages integration

Install our link decoration script so gclid, fbclid, and utm parameters carry from your blog page through to your store.

Written by Pico

If you're running a blog funnel, advertorial, or any self-hosted page that links to your store, you'll want to make sure tracking parameters like gclid, fbclid, and your utm_* tags carry over from the blog page to the checkout. Without this, your ad platforms can't connect the conversion back to the click that started it, and your reporting will look like the traffic came from nowhere.

Our link decoration script handles this for you. When someone lands on your page with tracking parameters in the URL, the script copies those parameters onto every outbound link, so they follow the visitor through to your store.

What you'll need

A blog page, advertorial, landing page, funnel, or any HTML page where you can edit the <head> element. The same script works across all your stores and all your blog pages, so you only need to set this up once per template.

Setup

Step 1. Add the script

Paste this line inside the <head> element of your blog pages:

<script src="https://cdn.trackbee.ai/link_decoration.js" defer></script>

If you're using a template or theme, add it to the template once and it'll apply across every page built from it.

Step 2. Confirm it's installed

Open your blog page in the browser, right click, and select "View page source". You should see the script tag in the <head>. That's enough to confirm it's loaded.

Test that it's working

The fastest way to verify before you go live:

  1. Add a couple of test parameters to your blog page URL, for example: https://yourdomain.com/your-blog-page?gclid=test&utm_source=test

  2. Click the link or button that leads to your store.

  3. Check the URL on the next page. You should see ?gclid=test&utm_source=test carried over.

If the parameters are there, you're set. If they're not, double check that the script is loaded in the <head> and that no older custom script is overriding it.

What's not supported

If your page uses JavaScript to move visitors to the next step (clicks that change the page through JS instead of following a standard <a href> link), the script can't catch those. Most blog funnels use normal links, so this rarely comes up in practice. The test above will tell you within a minute whether your setup is compatible.

Need a hand?

If the test doesn't show your parameters carrying through, send us a message with the URL of your blog page and we'll take a look.

Did this answer your question?