Pass utm parameters from hubspot landing page to external URL

SOLVE
piercleo
Participant

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

0 Upvotes
1 Accepted solution

Accepted Solutions
Vectordude
Solution
Contributor

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/ .

 

 

View solution in original post

1 Reply 1
Vectordude
Solution
Contributor

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/ .

 

 

View solution in original post