Web Marketing
Strategies for Small Business

« Maine Web Developer Position | Main | St. Andrews Village Retirement Community is Blogging! »

February 12, 2008

Track Email Newsletters Signups In Google Analytics

Yesterday I got an email asking about an article I wrote called "Tracking Conversions: Does Your Web Site Turn Suspects Into Prospects?"

I had talked about how to track Constant Contact subscriptions in Google Analytics...something difficult to do because the signup happens at Constant Contact's site, not yours.

The trick is in adding a piece of code to the signup form. (The same holds true for any outgoing link.) Basically, you set up an imaginary directory for your outgoing links and GA tracks these clicks as if they were going to that imaginary directory.

For the Constant Contact example, your opening line might look like this:

<form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post" onsubmit="javascript: pageTracker._trackPageview('/outgoing/example.com');">

If you're using the older GA code it might look like this:

<form name="ccoptin" action="http://ui.constantcontact.com/d.jsp" target="_blank" method="post" onsubmit="urchinTracker('newsletter/subscription');">

How do you know if you're using the older or newer Google Analytics code? Find out here.

Learn more about tracking outbound links on your site  at the GA help section.

Rich Brooks
Measure Twice, Cut Once

|

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/26230/26048188

Listed below are links to weblogs that reference Track Email Newsletters Signups In Google Analytics:

Comments

Rich,

Thank you for this post. I have been pulling my hair for weeks trying to figure out how to track newsletter subscribers via GA.

Post a comment

Comments are moderated, and will not appear on this weblog until the author has approved them.