We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Mar 3, 2020 9:49 AM
Hi,
How can I pass the UTM parameters of a Hubspot landing page URL to a button on that page which sends to an external URL ?
Best regards,
Pierre
Solved! Go to Solution.
Mar 5, 2020 10:49 AM
Hi piercleo,
It depends. If you control both websites, I would enable cross domain tracking. Here is link to how to do this in google analytics https://support.google.com/analytics/answer/1034342?hl=en. This will essentially link your two websites and look at the original source of sessions between both websites.
If you only have control over the landing page, or want to limit the link for just this page you will have to get into some javascript to fetch the URL variables and append them to the link on the CTA. Here is a link to some info about what that might look like.https://html-online.com/articles/get-url-parameters-javascript/ .
Mar 5, 2020 10:49 AM
Hi piercleo,
It depends. If you control both websites, I would enable cross domain tracking. Here is link to how to do this in google analytics https://support.google.com/analytics/answer/1034342?hl=en. This will essentially link your two websites and look at the original source of sessions between both websites.
If you only have control over the landing page, or want to limit the link for just this page you will have to get into some javascript to fetch the URL variables and append them to the link on the CTA. Here is a link to some info about what that might look like.https://html-online.com/articles/get-url-parameters-javascript/ .