Google Analytics code for external links?

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/17/2009 11:31:15 PM
Gravatar
Total Posts 9

Google Analytics code for external links?

First off, I absolutely love how easy it is to enter the Google Analytics code in the Site Settings and everything just works!  Cool

You helped me figure out how to set up my Donate button which ended up being a url reference to PayPal (instead of the button code) and now that's working, but I don't see any clicks in Analytics.  Is there a way to tell MP that I want all off-site/external links to also be counted?  Can I add it somehow to the url itself?  I found an example on the Analytics site, but given the Edit Link dialog in MP, I couldn't get it to work right. 

Ultimately, I'd like to be able to see how many folks are clicking on the Donate button (since that's a primary goal of the site...)

Thanks!

Darrin

11/18/2009 8:00:44 AM
Gravatar
Total Posts 18439

Re: Google Analytics code for external links?

Hi,

There is not a way to automatically track outbound links, but there is a way to manually create outbound links in html content that is tracked in google analytics.

I just created a document about it here:

http://www.mojoportal.com/tracking-outbound-link-clicks.aspx

Hope it helps,

Joe

11/18/2009 3:43:06 PM
Gravatar
Total Posts 9

Re: Google Analytics code for external links?

I did get this working...I had to get one of my devs help me get the onclick event placed properly in the long url string for the paypal link but we got it to work.

Just as input for a future enhancement...it would be awesome to have a checkbox in the link properties dialog box (where I enter the url itself) that offers to include in the tracking data as well as the opportunity to enter a 'tag' for it.

Thanks again!  You're the man!

Darrin

You must sign in to post in the forums. This thread is closed to new posts.