Fork Tendenci on GitHub

[T4] Newsletters - How do I track traffic in Google Analytics from my newsletters in Tendenci?

The easiest way to track traffic coming from your Tendenci newsletter is by using the Google Analytics URL builder tool.

How does it work?

Use the Google URL Builder tool to add tags on the end of your URLs so when people click from your newsletter to your website, Google knows exactly where they came from.

To get started

Visit the link:
You will need to add tagging for each URL in your newsletter that you want to track. This can be a little tedious, but is the best way to view the information.
Fill in all the required fields:
  1. Paste the URL into the URL field
  2. Add campaign source: newsletter
  3. Add campaign medium: email
  4. Add campaign name: whatever differentiates this specific newsletter (i.e. May2009)
Press Generate
Your link will look something like:
Remember: everything after the question mark is tracking code for Google.
NOTE: If your URL already has a question mark in it - you only need the first question mark and can swap out the question mark generated by the tool to be an AMPERSAND.

Looking at the results in Google Analytics

In Google Analytics, go to Traffic Sources. Click to view the full list if your newsletter does not show up in the top 5.
Your newsletter will be tagged by whatever you used as the campaign name above.
You can click here to segment out these visitors, see what links they clicked on, how long they spent on your site, how many clicked through to your site, etc. You can also get an idea of how long it takes your users to open your newsletter. Often business-related newsletters get opens for 24-48 hours, and personal or recreational newsletters have a longer life.