How to add google analytics code in email?

Member

by virginie , in category: SEO Tools , 6 months ago

1 answer

Member

by maci , 6 months ago

@virginie 

To add Google Analytics code in an email, follow the steps below:

  1. Generate the tracking code in your Google Analytics account: Log in to your Google Analytics account and select your website property. Go to the Admin section and click on "Tracking Info" under the Property column. Click on "Tracking Code" to view the code snippet.
  2. Copy the tracking code snippet provided by Google Analytics.
  3. Open your email template or HTML editor where you create your email.
  4. Paste the tracking code snippet within the HTML of your email template where you want the tracking to be added, preferably within the section of the HTML.
  5. Save the changes to your email template.


Note: While adding Google Analytics code in an email is possible, it's important to remember that email clients and web-based email services may not fully support JavaScript, which is the language used by Google Analytics. As a result, tracking data may not be collected accurately or may be blocked entirely by certain email clients. It's always recommended to test the email and analyze the data to ensure accurate tracking.