I'd like to track my newsletter with google analytics, Is it possible to dynamicly add some url parameters to all the links/url included in the newsletter?

Something like this: mywebsite.com/?utm_source=newsletter&utm_medium=email&utm_campaign=20080318

It would be great if Simplenews could add some kind of URL Builder to the settings page (see http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer...),
for example:

http://www.mywebsite.com/?utm_source=newsletter&utm_medium=email&utm_campaign=20080318

  • utm_source=newsletter always the same value
  • utm_medium=email always the same value
  • utm_campaign=20080318 could be the title of the newsletter

Comments

moshe weitzman’s picture

This looks really useful. At least for node title links.

Mike Sances’s picture

Subscribing

hendler’s picture

subscribing

marco88’s picture

subscribing too

sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

I am willing to include something like this, but I like to see more specifications. So instead of 'Subscribing' please add your requirements in detail.

marco88’s picture

Title: Integrate Simplenews with Google Analytics URL Builder » My requirements

Personaly I would like to use Google Goals to count how many people joined the mailing list.

All I need is a URL for when someone has subscribed. Then I can stick it in Google. The URL just needs to have a consitent logical pattern to it.

Google uses Exact Match, Regular Expression or Head Match see:

https://www.google.com/support/googleanalytics/bin/answer.py?answer=7228...

Thanks,
Marc.

sutharsan’s picture

Title: My requirements » Integrate Simplenews with Google Analytics URL Builder

Please use a descriptive title. The title you enter here is the Issue title, not the comment title.

philippejadin’s picture

I would do it like this :

- create a separate module that rewrites urls
- it could be a new filter, but this may or may not be the right solution, as filters acts only on parts of nodes (text areas) and you'd probably like to have node titles link rewritten
- create a UI that allows to check which content type must be rewritten, and what parameters are added to the links. A simple ui prefilled with this :

Parameter : Value
utm_source : newsletter
utm_medium : email
utm_campaign : 20080318 + select menu "use node title"

virtualdrupal’s picture

In...

The perfect measuring stick for newsletter conversions, I'd love to have an analytics goal that measures every click from a newsletter and see's how many roll into the shopping cart... or is this already possible?

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've created a new module for this: Simplenews Analytics for this. If you can check-out from CVS HEAD feel free to test it.

Anonymous’s picture

Thank you so much!

I've installed it and the links were tagged, I'm jut waiting for analytics results. :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hiralv’s picture

H Team,

I have installed simple news analytics module. And set the required value and generate url from google. But I don't know where I need to paste that link.

Should I paste google generated link some where in my newsletter?? If so then where I need to add?

Please help

Thanks
Hiral

simon georges’s picture

@hiralv, you should post your issue into the Simplenews Analytics issue queue.

mikhailian’s picture

For 7.x, check my utm filter.