简体   繁体   中英

Google Analytics URL builder to track campaigns

I have URL built using URL Builder for analysis tracking on Google Analytics :

https://cdnresources.s3.amazonaws.com/splash_images/uid_3429_1455443361903coke-free_with_mcpizza.jpg?utm_source=Tofa7teen%20%20Cafe&utm_medium=Splash%20Page&utm_term=PoP-Ads&utm_content=ads%20on%20tofa7teen&utm_campaign=Tofa7teen%20Campaign%20

and the main domain is different from the main in this URL , in another way

how to track different links from orignal website URL in Google Analytics ?

The utm parameters would only be sent to your Analytics account if it was followed from an external link to a page on your domain which has your tracking code on it. It would then match the utm parameters from the link leading to your site with the other attributes collected for that user's session.

If this image is to be used as an outbound link you can track it using a click event:

function handleOutboundLinkClicks(event) {
  ga('send', 'event', {
    eventCategory: 'Outbound Link',
    eventAction: 'click',
    eventLabel: event.target.href
  });
}

Then by setting an onclick='handleOutBoundLinkClicks(e)' attribute to these outbound link images.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM