Is it possible to exclude links from tracking

左心房为你撑大大i 提交于 2019-12-21 07:14:15

问题


I am building an app which is utilizing Sendgrid Marketing Email API, with the purpose of sending newsletters. It has a number of links to articles, but also banner ads and other service links. We would obviously like to keep tracking of article links, but exclude other links from affecting the click rate. Is it possible in any way to mark links which we don't wish to add to tracking?


回答1:


Minor thread necromancy to let anyone who gets here via google know that they added an attribute to disable link tracking.

https://sendgrid.com/docs/Classroom/Track/Clicks/click_tracking_html_best_practices.html

Click tracking can be turned off for individual links by including the clicktracking=off attribute inside the anchor of an HTML link before the href. For example, <a clicktracking=off href="http://example.com">link text</a> would not be tracked.




回答2:


The current click tracking application for SendGrid overwrites all links and there isn't, at this time, a way to customise this so only certain links are tracked.

One alternative would be to turn off the Click Tracking app in your SendGrid dashboard, but switch on the Google Analytics app (under Apps > Show Disabled Apps > Google Analytics).

With this app switched on, you can then build out custom links that you want to track using the Google Analytics URL Builder.

This would stop SendGrid rewriting all the URLs, and allow you to specify URLs that you want to track. However it would mean you will lose click event data in your SendGrid analytics, and via the Event Webhook, but the important data that you want to track for your campaigns would still be stored in Google Analytics.



来源:https://stackoverflow.com/questions/28873632/is-it-possible-to-exclude-links-from-tracking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!