Hello,
Cody S from the escalation team sent me here after they couldn't answer our questions about ticket number 4414242.
Introduction
We want to be able to map each clicks on our URL in our mail template to provide more visual statistics to our marketing team.
But after trying to reverse engineer we couldn't find any easy way to do it using the url offset, though it looks like the perfect params to do it.
The example email we used as 23 url, confirmed by counting them and using the following JS command :
document.body.querySelectorAll('a:not([href^="mailto:"]').length
But the url_offset go up to 37.
- Why does the URL offset goes up to 37 ?
- We also have some URL (say the 5th, 6th and 7th) where the URL offset would be 12, 13 then 16 (a jump of one or multiple url). Why does it happens?
- We also observed an
url_offset having two URLs. How can this happens?
- Finally, why the first
url_offset is associated with a link which isn't present in the template?
Expected content
More information on the logic behind the url offset generation, so we can create an accurate mapping of the clicks in an associated email template.
Actual content
<a name="urloffset"`urloffset` - if there is more than one of the same links in an email, this tells you which of those identical links was clicked.
Link to page: https://sendgrid.com/docs/for-developers/tracking-events/event/#json-objects
Hello,
Cody S from the escalation team sent me here after they couldn't answer our questions about ticket number 4414242.
Introduction
We want to be able to map each clicks on our URL in our mail template to provide more visual statistics to our marketing team.
But after trying to reverse engineer we couldn't find any easy way to do it using the url offset, though it looks like the perfect params to do it.
The example email we used as 23 url, confirmed by counting them and using the following JS command :
But the
url_offsetgo up to 37.url_offsethaving two URLs. How can this happens?url_offsetis associated with a link which isn't present in the template?Expected content
More information on the logic behind the url offset generation, so we can create an accurate mapping of the clicks in an associated email template.
Actual content
Link to page: https://sendgrid.com/docs/for-developers/tracking-events/event/#json-objects