Zen Cart Logo
Forums / Strategies for Advertising my Online Store / Creating Bing Ads conversion tracking

Creating Bing Ads conversion tracking

Views: 87

Results 1 to 5 of 5
23 May 2017, 7:59 PM
#1
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Creating Bing Ads conversion tracking

I have been trying to install Bing ads so I can track Sale Conversions.
Here is the three things needed for it to work as far as I know.

  1. Paste JavaScript above either /head or /body tag:
<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"5566550"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script><noscript><img src="//bat.bing.com/action/0?ti=5566550&Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /></noscript>
  1. Under goal details, you select for the Destination URL one of following (Equals to, or Begins with, or Contains, or Regular expression.)

  2. Enter Destination URL

This sound very simple to do but so far I haven't gotten it to work.

  1. above I have pasted the above Bing code either, above the /head tag that should be my "html_header.php" page. or above the /head tag that should be my "html_header.php" page. I used the /head tag page.
    Is this correct?
  2. Next under goal details, you select for the Destination URL one of following (Equals to, or Begins with, or Contains, or Regular expression.). I used Equals to.
  3. Then fill in the blank space with Destination URL (which is)?

What is the Destination URL page needed?
Is it the actual URL address that is shown in the address bar after checkout success page is created? https://www.website.com/my folder/index.php?main_page=checkout_success
Or
Is it the actual URL page path? https://www.website.com/my folder/includes/templates/my template/common/tpl_main_page.php

Does some other page need to be created? Bing does not have a clue how to install it on ZenCart. I would really appreciate help getting this to work.

25 May 2017, 3:05 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Creating Bing Ads conversion tracking

There's nothing special here.
Whether Bing or BillyBobsBusinessTracker, the process is the same:

a) put the javascript code onto the site.
b) configure the "tracking" site to know what to do with the data the javascript code sends to it.

To do:
a) putting the javascript onto your site.
Any /includes/templates/YOUR_TEMPLATE_NAME/jscript/jscript_SOMETHING.js (or .php) file's contents will automatically be put inside the <HEAD>..</HEAD> tags on your site.

So, create a file: /includes/templates/YOUR_TEMPLATE_FOLDERNAME/jscript/jscript_bing_tracking.js
and put their javascript code inside it.
Done. Now every click to your site is sending data about that page to Bing.

b) Configuring Bing to track visits on your site.
This is really up to Bing to tell you what to do.

All you need to understand is 'when I post an ad and people click on it, what URL should they eventually "get to" (after surfing various pages) for me to decide that a "conversion" has taken place?'

This is basic "funnel" logic. You do the same in Google Analytics for tracking various kinds of conversions, whether sales, or subscribing to a newsletter, or whatever.

Maybe the ad click takes them to a product page, and then your desired goal is that they simply add it to their cart. Then the destination URL would be index.php?main_page=shopping_cart
Or if you wanted them to click all the way through checkout completion, then it would be the URL where main_page=checkout_success

You can work with Bing Support to understand how exactly to write the URLs ... whether to include your domain name or not, whether to use "equals" vs "regex" vs whatever.

25 May 2017, 6:04 PM
#3
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Creating Bing Ads conversion tracking

I have done exactly as you said. Placed order and source code shows jscript. I have placed a test order and must wait 6-7 hours. Will post back results here.
Thanks
Larry

26 May 2017, 5:22 PM
#4
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Creating Bing Ads conversion tracking

DrByte:

There's nothing special here.
Whether Bing or BillyBobsBusinessTracker, the process is the same:

a) put the javascript code onto the site.
b) configure the "tracking" site to know what to do with the data the javascript code sends to it.

To do:
a) putting the javascript onto your site.
Any /includes/templates/YOUR_TEMPLATE_NAME/jscript/jscript_SOMETHING.js (or .php) file's contents will automatically be put inside the <HEAD>..</HEAD> tags on your site.

So, create a file: /includes/templates/YOUR_TEMPLATE_FOLDERNAME/jscript/jscript_bing_tracking.js
and put their javascript code inside it.
Done. Now every click to your site is sending data about that page to Bing.

b) Configuring Bing to track visits on your site.
This is really up to Bing to tell you what to do.

All you need to understand is 'when I post an ad and people click on it, what URL should they eventually "get to" (after surfing various pages) for me to decide that a "conversion" has taken place?'

This is basic "funnel" logic. You do the same in Google Analytics for tracking various kinds of conversions, whether sales, or subscribing to a newsletter, or whatever.

Maybe the ad click takes them to a product page, and then your desired goal is that they simply add it to their cart. Then the destination URL would be index.php?main_page=shopping_cart
Or if you wanted them to click all the way through checkout completion, then it would be the URL where main_page=checkout_success

You can work with Bing Support to understand how exactly to write the URLs ... whether to include your domain name or not, whether to use "equals" vs "regex" vs whatever.

After creating the jscript file as you showed then I removed the Bing code from https://www.website.com/my folder/includes/templates/my template/common/html_header.php. Still, no conversions and now I noticed using Bing Tag Helper the Tag is inactive. So that is the reason now for no conversion shown. The view source code page shows,

<base href="<https://www.ezorbcalcium.com/secure/>" />
<link rel="stylesheet" type="text/css" media="print" href="[includes/templates/zen4ezorb/css/print\_stylesheet.css](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/css/print_stylesheet.css)" />
<link rel="stylesheet" type="text/css" href='[/secure/includes/templates/zen4ezorb/css/style\_imagehover.css](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/css/style_imagehover.css)' />
<link rel="stylesheet" type="text/css" href='[/secure/includes/templates/zen4ezorb/css/stylesheet.css](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/css/stylesheet.css)' />
<link rel="stylesheet" type="text/css" href='[/secure/includes/templates/zen4ezorb/css/stylesheet\_css\_buttons.css](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/css/stylesheet_css_buttons.css)' />
<link rel="stylesheet" type="text/css" href='[/secure/includes/templates/zen4ezorb/css/stylesheet\_highslide-ie6.css](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/css/stylesheet_highslide-ie6.css)' />
<script type='text/javascript' src='[/secure/includes/templates/zen4ezorb/jscript/jscript\_bing\_conversion.js](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/jscript/jscript_bing_conversion.js)'></script>
<script type='text/javascript' src='[/secure/includes/templates/zen4ezorb/jscript/jscript\_imagehover.js](https://www.ezorbcalcium.com/secure/includes/templates/zen4ezorb/jscript/jscript_imagehover.js)'></script>
</head>

I guess Bing conversion will only work on a static page (page not being built by php code if my terminology is correct.) and Bing Ad people knows nothing about ZenCart. I am lost on what to do.

8 Jun 2017, 12:34 AM
#5
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Creating Bing Ads conversion tracking

@Dr Byte
I am assuming when you said "and put their javascript code inside it." that means to put the bing-code on the "Thank You" page. After doing all of this still no Bing Conversions. Bing so-called engineers are still trying to figure this out. Is there something wrong with their code I pasted above in #1