WP Redirect Plugin with Analytics support?

8 replies
Hi guys...

I was wondering if there is a plugin out there for wordpress, that can redirect/cloak a link and at the same time, execute some analytics code...

The reason for this is to track clicktrough rates, with analytics.

I've done this before by using a .php redirect script and just added the analytics code in the .php file... but, this is time consuming and if I want to change anything, I need to use FTP...

Maybe there is a smarter and eaiser way to do this?
#analytics #plugin #redirect #support
  • Profile picture of the author ElectricChili
    I use the Pretty Link plugin. You should check it out. Very simple to set up and works like a charm.

    Rich
    {{ DiscussionBoard.errors[2356715].message }}
    • Profile picture of the author hjalte81
      Originally Posted by ElectricChili View Post

      I use the Pretty Link plugin. You should check it out. Very simple to set up and works like a charm.

      Rich
      I also use pretty link, but I cannot integrate it with google analytics...?
      {{ DiscussionBoard.errors[2356756].message }}
  • Profile picture of the author ElectricChili
    You can track click throughs on each link you set up but no, doesn't integrate with google analytics that I'm aware of.
    {{ DiscussionBoard.errors[2356779].message }}
    • Profile picture of the author hjalte81
      Originally Posted by ElectricChili View Post

      You can track click throughs on each link you set up but no, doesn't integrate with google analytics that I'm aware of.
      The way I'm doing it now is like this:

      Pretty link -> .php file (with analytics code) -> affiliate offer.

      Bu there must be an easier way
      {{ DiscussionBoard.errors[2356782].message }}
      • Profile picture of the author zaclondon
        Originally Posted by hjalte81 View Post

        The way I'm doing it now is like this:

        Pretty link -> .php file (with analytics code) -> affiliate offer.

        Bu there must be an easier way
        I'm looking for this kind of plugin too but Google's turning up empty.

        I'd like to give your suggestion a try. Would you mind sharing your php file?
        {{ DiscussionBoard.errors[2368626].message }}
        • Profile picture of the author hjalte81
          Originally Posted by zaclondon View Post

          I'm looking for this kind of plugin too but Google's turning up empty.

          I'd like to give your suggestion a try. Would you mind sharing your php file?
          Sure... (I'm not using a .php file - my bad - I'm using html meta refresh)

          Code:
          <html>
          <head>
          
          <!-- PASTE ANALYTICS CODE HERE -->
          
          <meta http-equiv="refresh" content="2;url=http://www.yoursite.com/newpage.htm" />
          
          </head>
          </html>
          {{ DiscussionBoard.errors[2368646].message }}
  • Profile picture of the author ElectricChili
    I use my WP blog as the hub for all things related to the niche. I set up uniquely named Pretty Links for each link that's on the right column, post header, squidoo, Goarticles, EZine articles, etc. This way I can track the hits of each. With this setup I don't have the ability to tell which individual Go Article is doing the best, though. I can only tell how many clicks are going through in total from Go Aricles. To fix that I would have to have a unique Pretty Link for each article and that would start to become unmanageable real fast.

    The analysis is pretty basic but some information is better than none.

    Rich
    {{ DiscussionBoard.errors[2356812].message }}
  • Profile picture of the author Elmack25
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[2368815].message }}
    • Profile picture of the author zaclondon
      Originally Posted by hjalte81 View Post

      Sure... (I'm not using a .php file - my bad - I'm using html meta refresh)
      Thanks mate. I hadn't seen your reply till now and I've written my own version.

      My version is written in PHP and is slightly more flexible by allowing the url to redirect to and specify the page name for Google Analytics . You can then add this page name as a goal in Google Analytics.

      Rename the attachment to redirect.php and upload to your web server's www root.

      Call it like this:
      http://www.yourwebsite.com/redirect....page-name&url=[your url]

      NOTE that [your url] MUST be encoded otherwise it will not work. Go to URL Decoder/Encoder, paste in your URL and click encode.

      When you redirect using this method the redirection page will be show up in Google Analytics.
      {{ DiscussionBoard.errors[2368861].message }}

Trending Topics