• Home
  • About
    • Sitemap
My Webmaster Tips

My tips on various webmaster programming tasks and SEO.

  • Design
  • SEO
  • Software
  • Code

Sep
3

How to add Google Analytics tracking code to Post Affiliate Pro 4

Google Analytics graph.I know what you’re thinking, it can’t really be that difficult to add Google Analytics javascript tracking code to Post Affiliate Pro 4 (PAP4). When I first attempted to add my tracking code to the site. I got an error message and I didn’t know why I was getting one.

My original suspicion was that a variable in my Google Analytics code was conflicting with a variable in my Post Affiliate Pro 4 software. Well, I’m writing this article to tell you I was completely wrong about that one.

The real reason for the error is a whole lot simpler to solve than you think. After submitting a support ticket to Post Affiliate Pro’s help center, I got a reply back a few days later. I was told the reason why the Google Analytics code was causing errors was because of the way I was putting the code into the site.

PAP4 uses smarty syntax templates and you can’t just add Google Analytics code into pages as is. You’ll need to surround the Google Analytics code with the following tags:

{literal}{/literal}

I got more good news for you. There are only two spots you’ll need to add your Google Analytics tracking script code. Once in the footer.stpl file in the affiliates area and one more in the footer.stpl on the sign up form. You don’t need to track the merchant area, because that’s just you.

Having Google track your affiliate program will decrease the bounce rate of your website. Affiliate will come back to your site over and over again to track their earnings and stay logged in a lot of times. This will show Google that your website has more relevance than a regular old static website.

You could manually input the code on your sever, but Post Affiliate Pro 4 makes it really easy to edit the footer.stpl files right from your merchant back office.

Just go to Configuration, Affiliate Sign up, Custom Design, then Edit Footer for the sign up form.

Go to Configuration, Affiliate Panel, Customize Design, then Edit Footer to put the code in the affiliate area.

Simply put the javascript code at the bottom of both footer.stpl files. Your code will look like this (note: my tracker ID has been covered):

{literal}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-317xxxx-1");
pageTracker._trackPageview();
} catch(err) {}</script>
{/literal}

Related Posts:

  • How to use javascript to make your GetResponse subscription form check fields
  • Properly set up your WordPress blog for seo, speed, monetization, traffic, and the minimum required plugins and sites you’ll need to make it happen
  • My experience setting up Post Affiliate Pro 4 not too bad
  • List of 14 WordPress plugins your blog should have installed
  • How to add Alertpay as a pay out option in Post Affiliate Pro
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Tags: Affiliate Program, Affiliates Area, Decrease Bounce Rate, Error Message, Footer.stpl, Google Analytics, Javascript Tracking Code, Merchant Area, PAP4, Post Affiliate Pro 4, Sign Up Form, Smarty Syntax, Templates, Tracking Code, Variable

Posted by mywebmastertips Post Affiliate Pro Subscribe to RSS feed

One Comment to “How to add Google Analytics tracking code to Post Affiliate Pro 4”

  1. Andrew Hallock says:
    October 12, 2009 at 10:28 am

    Thanks for the tip–it worked great!

    [Reply]

Leave a Reply

Click here to cancel reply.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Click to cancel reply

Categories

  • Code
    • CSS
    • HTML
    • JavaScript
    • MySQL
    • PHP
  • Design
    • Browsers
  • SEO
    • Advertising
  • Software
    • Getresponse
    • Post Affiliate Pro
    • Simple Machines Forum
    • Wordpress

Recent Comments

  • mywebmastertips on How to fix Ping.fm WordPress plugin if it doesn’t add triggers
  • Monty on How to fix Ping.fm WordPress plugin if it doesn’t add triggers
  • Soniya Shrma on Do not use brand names alone when using pay per click advertising (PPC) to promote an affiliate Company
  • AK on How to fix Ping.fm WordPress plugin if it doesn’t add triggers
  • Sanjay on How to fix Ping.fm WordPress plugin if it doesn’t add triggers

Popular Posts

  • How to fix Ping.fm Wordpress plugin if it doesn't add triggers 9 comment(s)
  • Do not use brand names alone when using pay per click advertising (PPC) to promote an affiliate Company 5 comment(s)
  • CSS versus HTML tables for page layouts 4 comment(s)
  • How to make logo centered with Register Plus Wordpress plugin 4 comment(s)
  • How to use javascript to make your GetResponse subscription form check fields 1 comment(s)

Recent Posts

  • Properly set up your WordPress blog for seo, speed, monetization, traffic, and the minimum required plugins and sites you’ll need to make it happen
  • My ftp webserver got hacked with a malicious malware script and how to fix and prevent it
  • Signupandmakemoney has a new look
  • How to know who you should and shouldn’t follow on Twitter
  • The importance of making your WordPress author comment urls open in a new window and the code to make it happen

Wall

Previous Next

» Leave a reply



My Social Networks

  • DandyID DandyID
  • Blogger Blogger
  • Digg Digg
  • Facebook Facebook
  • Friendster Friendster
  • MySpace MySpace
  • Reddit Reddit
  • Technorati Technorati
  • Twitter Twitter
  • YouTube YouTube
  • Zillow Zillow
  • Delicious Delicious
  • Yahoo! 360 Yahoo! 360
  • Flickr Flickr
  • 30 Boxes 30 Boxes
  • Ustream.tv Ustream.tv
  • Ebay Ebay
  • MyBlogLog MyBlogLog
  • Tagged Tagged
  • Linkedin Linkedin
  • LiveJournal LiveJournal
  • Amazon Amazon
  • Brightkite Brightkite
  • Plurk Plurk
  • Tumblr Tumblr
  • identi.ca identi.ca
  • Friendfeed Friendfeed
  • Plaxo Plaxo
  • Bebo Bebo
  • Diigo Diigo
  • hi5 hi5
  • Jaiku Jaiku
  • Ning Ning


Register

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

My Other Sites

  • Jazz Trumpet Licks
  • Sign Up Bonuses

Tags

Affiliate Program Affiliates All in One SEO Pack Blog Blog Post Blogs Browser Code CSS Facebook Feedburner Free Traffic General Header GoDaddy Google Adwords Google Analytics Google Chrome Google XML Sitemaps Home Page htaccess IE6 Index Internet Explorer Internet Explorer 6 PAP4 PHP Plugin Post Affiliate Pro 4 Safari Search Engine Friendly Search Engines Server Simple Machines Forum SMF Forum Title Traffic Twitter Web Design Web Designer Website Wordpress Wordpress Blog Wordpress Plugins WP-Spam Free WP Greet Box

Archives

  • April 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
RSS | Sitemap
Copyright © 2010 My Webmaster Tips All rights reserved. Blue Grace theme by Vladimir Prelovac.