What about dsIDXPress Adwords Conversion Tracking? You want some meat? How about a session cookie? I’m no beginner when it comes to developing a WordPress real estate theme. In fact, I’ve been in the real estate business since 2002 and have been a real estate broker since 2009. So why push all the credentials upfront? After hearing all of the excuses, ticket requests, suggested additions, and mountains of complaining from various IDX Vendor customers over the years, I couldn’t be held hostage any longer.
It’s all about Google Adwords and conversion tracking when it comes to beefy real estate websites with “great design.” Before I forget to mention, I’m also Google Adwords certified. I’ve been developing with the dsIDXPress WordPress Plugin for a few years now and well, I have my opinions. However, when it comes to online real estate lead generation, you absolutely want to keep on eye on conversion data. In fact, in order to optimize your ppc campaign(s) efficiently, Google needs conversion data!
Firstly, if you found this post, you most likely know a thing or two about web development. Secondly, you should have a small understanding of the inner workings of the dsIDXPress plugin files. Thirdly, you haven’t been able to find a solution for tracking conversions with Adwords and dsIDXPress. I’m not going to say this is the absolute best approach for conversion tracking, but it works great and I know what’s going on day to day in my squeezed Sillywords campaigns.
Get ready to throw some files around with your favorite FTP client (for those of you with little to no experience, feel free to contact me to get this set up). One last thing…in dsIDXPress 2.1.9, a custom post type was added to the plugin called IDX Pages. It has a few rewrite rules that work to make readable url’s and helps with organization in some cases. In order to make sure everything is buttoned up, I’ll be showing you how to include this new custom post type into our conversion tracking code, because this addition created a third template/page option.
What will we be completing in this tutorial?
- 01dsIDXPress General Settings
- 02Page Template(s) for dsIDXPress
- 03Generate Google Adwords Conversion Tracking Code
- 04Reviewing the isset $_COOKIE
- 05Piecing Together the Code
- 06Installing the Code
- 07Testing the Code
- 08Tracking Adwords Conversions with dsIDXPress
01. dsIDXPress General Settings
You’ll need to know which WordPress page templates are configured to show the dsIDXPress results and detail pages. In your WordPress administration area, locate the dsIDXPress plugin settings and click on General. These first two settings display the WordPress page template files associated with dsIDXPress page layouts.
02. Page Template(s) for dsIDXPress
Next, locate the actual page template files in your top level directory. You will need to remember the file name(s)…write the file name(s) down for use later on. Note, the files above are not standard dsIDXPress template files. Each of you will have different file names…just make sure you know the corresponding template files that are selected in the General Options above.
03. Generate Google Adwords Conversion Tracking Code
Log in to Google Adwords to generate your conversion tracking code. Keep in mind, we are tracking unique leads, so when generating the conversion tracking code, make sure the lead option is selected and that it is unique. See the screenshots above and after generating the code, continue to the next step.
04. Reviewing the isset $_COOKIE
<?php if (isset($_COOKIE['dsidx-visitor-auth'])): echo ''; else:; echo ''; endif; ?>
This next step has some leniency tied to it. The goal is going to be to check to see if the session cookie isset when a new account is created and then to inject our conversion tracking script into the DOM…after and before the closing tags included, depending on the file and where the code is injected.
05. Piecing Together the Code
This is a fairly simple script to break down. First, we are adding code to display a custom login/logout area (in the header of the website). We are stating if this page-template or page-template or this page-template, echo our login/logout buttons. Next, we are checking to see if the dsIDXPress session cookie has been authorized. If it has, the login/logout buttons change and our Adwords Conversion Tracking Code is used. If none of the above is true, we see we can create an account or login.