Skip to main content

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 -> http://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 Manager
  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 Code
  3. Paste the code, and select where/how it should be shown (for me it’s before the </BODY so i selected that)
  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   and head over to the page you want to add the code into.*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 http://bannerslanders.com/thank-you
  6. Paste in the code, and press update post and bam you are done.

That’s it pretty simple right?

 

HOW to get Amazing Angle Ideas for your product/service/affiliate offer

As CPM rates are rising like mad, and regulations are increasing on how you can target, and what you can do on the best traffic sources like Facebook, Google, Bing, Yahoo, etc.  It is important to have an edge (a moat as Charles Ngo would say).

One of these moats of mine are ANGLES,  I love to speak the language of my target audience so they agree, and click and then convert.

But how in the world do you come up with awesome angles?  Not everyone is creative,  I get it.    Don’t worry there’s actually an easy trick where others will come up with ideas FOR YOU without knowing they are doing you a favor.       The trick is to read the COMMENTS!!!

Let me tell you a story,  very recently (actually 30 minutes ago) I clicked on a post on STM – The #1 affiliate marketing forum from a guy titled Custom Landing Pages – Where to Buy?     in this post someone vented their frustration and posted the comment “I am kind of on the same page. Currently looking for a very good landing page designer that has experience working with affiliate landers. It seems like people just bid on freelancer without actually reading the requirement, so you end up with 100s of proposal that are super irrelevant to what you actually need and its very challenging to figure out who actually knows what they are doing. If someone has a proven contact please PM!!! ” 

This comment gave me the idea to come up with the following really awesome, that speaks to the affiliate marketer that actually tried to hire and experienced time wasters, and endless back and forth on sites like UpWork/Freelancers, etc:

Looking for a designer that actually knows what affiliate landers are? Sick of freelancers just bidding on your job posts without actually reading what the job is about? Hate reading 100s of proposals only to confirm none of the applicants have a clue of what you are looking to get done?

Well here’s the solution – Banners&Landers. The #1 outsourcing service used by affiliate marketers that know what you need. www.bannerslanders.com