Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Webhoook Event URL offset details #6054

@Aridjar

Description

@Aridjar

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.

  1. Why does the URL offset goes up to 37 ?
  2. 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?
  3. We also observed an url_offset having two URLs. How can this happens?
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions