How do I use UTM tracking in unbounce?


#1

We are trying to use UTM tracking for our google analytic conversion tracking. For example: http://er.eurekareport.com.au/ft_1/?u… This page still loads but it is not passing the utm tracking across to the Eureka Report domain once the action buttons are pressed. How can you pass a query string parameter to an embedded form action on the unbounce HTML page?


#2

Hi Magida, I think I saw you submitted a support ticket for this as well (which you’ll probably hear back from quite soon) but in the meantime, I’ve updated a support article in our Knowledge Base that should help explain this:

http://support.unbounce.com/entries/3…

Basically you just need to add hidden fields to your form that are named the same as the link tags you’re hoping to capture. Let me know if that article doesn’t clear things up for you.

Cheers,
Carter


#3

Hi Carter,

The pages I have created do not have any forms - only buttons or text links that then take the user to the shopping cart on our website - this doesn’t seem to work unless you have a form on the page?

Thanks,
Magida


#4

You could ask a developer to write some code to add UTM parameters to the button that leads to your website.
Your link no longer works, so I couldn’t write code that you can just copy and paste, but here is an example to give you a general idea:

function parseGET(param) {
try {
var match = document.location.search.match(’[?&]’ + param + ‘=([^&]+)’);
if (match) {
var result = match[1];
result = result.replace(/+/g, ‘%20’);
result = decodeURIComponent(result);
return result;
} else {
return ‘’;
}
} catch (e) {
return ‘’;
}
}
// Modify the code below to adapt to your landing page
document.querySelector(‘a#your-button-id’).href += “?utm_source=” + parseGET(‘utm_source’) + “&utm_medium=” + parseGET(‘utm_medium’);

But if you did decide to add a form, check out this guide on tracking UTM parameters in Unbounce.