Track Email Open Rates

To track your email open rates, simply select the “Track email open rate” option on the Compose Message step when creating your message:

2016-06-15_22_24_40.210817-email_open_rate.png

How exactly does Mixpanel track email open rate?

Mixpanel tracks email open rates using pixel-based Event tracking. Mixpanel adds a URL directed to http://api.mixpanel.com/track/ into the src attribute of the HTML image tag within the email.

The format for the URL of the embedded image is the same as the URL for a regular Mixpanel request, except with "&img=1" added to the end. By adding "&img=1,” Mixpanel will return a 1x1 transparent gif that the program rendering the message will load. When the image renders, Mixpanel logs the Event.

Here is an example JSON array that we might generate for an open email Event:

{"event": "$campaign_opened", 
        "properties": {
            "distinct_id": "user@domain.com", 
            "token": "e3bc4100330c35722740fb8c6f5XXXXX", 
            "$campaign_id": "2072796"
                }
        }

This JSON array, once base 64 encoded and put in the proper URL format, looks like this:

https://api.mixpanel.com/track/?data=eyJldmVudCI6ICIkY2FtcGFpZ25fb3BlbmVkIiwgDQogICAgICAgICJwcm9wZXJ0aWVzIjogew0KICAgICAgICAgICAgImRpc3RpbmN0X2lkIjogInVzZXJAZG9tYWluLmNvbSIsIA0KICAgICAgICAgICAgInRva2VuIjogImUzYmM0MTAwMzMwYzM1NzIyNzQwZmI4YzZmNVhYWFhYIiwgDQogICAgICAgICAgICAiJGNhbXBhaWduX2lkIjogIjIwNzI3OTYiDQogICAgICAgICAgICAgICAgfQ0KICAgICAgICB9&ip=1&img=1
Is this article helpful?
2 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.