Reporting & Analytics

piercleo
Participant

Pass utm parameters from hubspot landing page to external URL

SOLVE

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

1 Accepted solution
Vectordude
Solution
Contributor

Pass utm parameters from hubspot landing page to external URL

SOLVE

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

Pass utm parameters from hubspot landing page to external URL

SOLVE

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