Wouldn’t it be cool if your landing pages that Infusionsoft tracking links and web form thank you page redirects go to could be personalized?
Until now, there wasn’t a WordPress plugin that let you do such a thing.
Infusionsoft allows you to create tracking links and include customer information such as their name and email address in the query string of the URL. Infusionsoft also allows your web forms to redirect to a thank you page on your site and include the web form data in the redirect link.
Switching your blog from Moivable Type to WordPress can be a real challenge, especially if your URL structure has changed.
In my case, our blog posts were previously /blog/year/month/post_name_with_underscores.html and under WordPress were going to be simply /post-with-hyphens/
While there are many a fancy regex one can setup in their .htaccess file for 301 redirects, they often involve looping through a recursive regex to replace each individual underscore with a hypen, and then other regexes to do the rest of the work before finally redirecting.
This evening I was experimenting with adding custom variables to my Google Analytics tracking code, but when I checked Google’s custom variable documentation, it didn’t match the analytics code that I had.
Google Analytics changes their code for you to copy and paste quite often, seemingly every time I setup a new site to track.
The latest version of the analytics code that I was given used a new format, notably:
var _gaq = _gaq || ;
var ga = document.createElement('script');
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script');
The docs say to put the _setCustomVar code in before pageTracker._trackPageview() … but I no longer have that older style setup.
After a bit of digging around, I came up with a solution from documentation on the _gaq Global Object. The _setCustomVar code can be added as follows: