@jamaicawinshipgmail-com @andreea-macoveiciuc-content-expert @danielisler1gmail-com
Review and optimize your email marketing efforts.
Navigate to Admin > Account > Property in your Google Analytics dashboard. Under Property, select Tracking Info > Tracking Code to find your unique tracking ID.
You will use this tracking ID to establish a connection between your Google Analytics account and the external channel you want to track.
Open the Google Analytics Hit Builder tool to begin creating a trackable pixel URL that you can add to any emails you intend to track to collect their statistical data in Google Analytics.
By default, you will see text fields available for the parameters v, t, tid, and cid, with the option to Add parameter to create new customizable fields. These are the measurement protocol parameters we will be setting up:
- v — protocol version
- t — hit type
- tid — tracking ID
- cid — client ID
- aip — anonymize IP
- ec — event category
- ea — event action
- dp — document path
- dt — document title.
Populate the existing fields. Leave v set as 1, click on the drop-down for the t field and select event. Enter your Google Analytics tracking ID in the tid field, and enter 555 in the cid field.
The Client ID or cid value of 555 is the anonymous client ID for GA. This value must be set as anonymous because collecting identifiable data such as an email address or name using the Measurement Protocol feature in Google Analytics, would violate their User ID policy.
Use the Add parameter button to add five additional fields. Type each new parameter into its own text field on the left column, and then type each corresponding value into the main text fields next to their parameters.
Populate your new text fields as follows:
- Enter aip in the left text field. In the adjacent field, enter 1 as the value.
- Enter ec in the left text field. In the adjacent field, enter email as the value.
- Enter ea in the left text field. In the adjacent field, enter open as the value.
- Enter dp in the left text field. In the adjacent field, name your document path; this should be unique for each email campaign tracking pixel. Don’t forget to include the backslashes ( / ) here. For example: /email/newsletter/1.
- Enter dt in the left text field. In the adjacent field, create a document title. For example: monthly newsletter.
Scroll back up to the Hit summary section of the page. You will see that the information you added in the text fields below have been formatted into HTML in the Hit payload box.
For the example above, the generated hit payload will look like this:
Click the Validate hit button to test the hit, and then select the option to Send hit to Google Analytics. This will take you directly to the Real Time view in your Google Analytics dashboard.
Alternatively, you can choose Copy hit payload if you would like to manually input it into a test email. To complete the tracking pixel manually, you need to add the basic structure of the URL to the hit payload you generated, and format it into HTML.
- Start with the beginning of the URL:
- Paste the hit payload directly after the (?) in the URL above, with no space between them:
- Format the URL into an HTML image tag:
Enter your tracking pixel into a test email and send it. Navigate to the Real-Time view in your Google Analytics dashboard to see if the tracking pixel is working.
Use this tracking pixel method to track the email open rates for each campaign directly in your Google Analytics dashboard. Use the data you collect to test and adjust different email marketing tactics to optimize your strategy.
For example, if your most recent email campaign resulted in a significantly lower open rate than previous campaigns, you can take the opportunity to examine what might have caused the drop in open rate. Consider adjusting your methods when it comes to writing a more compelling subject line or changing the time of day you send out your next email blast.