Adding Custom Code To Specific Pages in Wordpress

A new challenge presented itself, and I decided to document this because I’ve been doing it blindfolded, but many people might be a bit confused on how it’s done.  The task is to add a custom tracking code to specific pages in Wordpress.

In my case, I need to add a custom tracking code from LinkedIn into the thank you page at bannerslanders.com (this one -> https://bannerslanders.com/thank-you)

You can use webhooks and php code to do it if you are a 31337 hacker, but if you are like me who likes things simple and fast…. then the easiest way is to install a wordpress plugin named Tracking Code Manager.  It’s awesome, because you just add the tracking code, then you paste a shortcode by editing the WP post itself and BAM you are done.

Here’s how:

  1.  Login to Wordpress, and on the left hand side select Settings -> Tracking Code Manager01
  2.  You should see the Add New Script page, if not click it on the top menu and then give this tracking code a link.   I wrote LinkedIn Tracking Code02 2
  3. Paste the code, and select where/how it should be shown (for me it’s before the </BODY so i selected that)03 2
  4. Click SAVE and now you will be presented with a list of the tracking codes where you can grab the shortcode.
  5. Copy the shortcode; my shortcode is [tcm id=”1″]  and head over to the page you want to add the code into.04 2*Since I am tracking for conversions, aka people that filled out the contact us form that came from linkedin, I am adding this to the B&L thank you page over at https://bannerslanders.com/thank-you
  6. Paste in the code, and press update post and bam you are done.

That’s it pretty simple right?

If you have some questions, visit our forum and ask us there!

Did you like this post? Please share it with friends to support this blog

Leave a Comment

Search

#1 Affiliate Marketing Book

From Zero to Super Affiliate Amazon.com

From Zero to Super Affiliate - The newbie affiliate marketer bible

Buy Now At Amazon.com