I located a few threads on this topic, but none which answer my question. My client is using Miva v4.24. I just set up an Adwords account. I need the conversion tracking code to take into account the actual value of each sale, rather than an arbitrary static value. IOW, to pass the cost data from the shopping cart to the conversion code. Google reps advise me that with most shopping cart systems, this is accomplished by inserting a particular phrase into the "Value:" field on the conversion tracking setup page. Can anyone tell me what that phrase would be? Thanks.
Announcement
Collapse
No announcement yet.
Google Adwords Conversion Tracking Code
Collapse
X
-
Re: Google Adwords Conversion Tracking Code
I see that 11 people have viewed this but so far no responses. I'm surprised this isn't a common issue. Doesn't just about everyone use Adwords? If you're using it without conversion tracking, you're flying blind. Neither Google nor Miva had any ready answers for me. Anyone else?
-
Re: Google Adwords Conversion Tracking Code
Hi Rick,
I was wondering if you ever had any luck getting an answer to this question? I'm currently in the same situation (trying to figure out a value to enter in a Google Conversion Tracking action for a client to call the specific sale amount from the INVC page).
I came across a forum post in this regard but it doesn't seem to follow through to a specific conclusion. Did you have any success in your efforts on this front?
Thanks very much,
Michael
SNG
Comment
-
Re: Google Adwords Conversion Tracking Code
You guys might get in touch with:
Morgan Jones
eCommerce Intelligence
http://www.eComIQ.com
800-930-5908, Ext 6
Google Analytics Authorized Consultants
I know his team can help with these items and Miva Merchant.
Comment
-
Re: Google Adwords Conversion Tracking Code
Originally posted by SNG View PostHi Rick,
I was wondering if you ever had any luck getting an answer to this question? I'm currently in the same situation (trying to figure out a value to enter in a Google Conversion Tracking action for a client to call the specific sale amount from the INVC page).
I came across a forum post in this regard but it doesn't seem to follow through to a specific conclusion. Did you have any success in your efforts on this front?
Thanks very much,
Michael
SNG<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = XXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (%VAR(order_subtotal)%) {
var google_conversion_value = %VAR(order_subtotal)%;
}
var google_conversion_label = "Purchase";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript><img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/XXXX/?value=%VAR(order_subtotal)%&label=Purchase&script =0">
</noscript>
Comment
-
Re: Google Adwords Conversion Tracking Code
Thanks very much for posting this. Unfortunately I haven't had much luck with it. I attempted to swap in the customized version of your code into my INVC page but in my testing (starting from my Google Adwords link) the Invoice page won't display the Google Stats indicator.
I've included the default code generated within my Adwords campaign for my "sale" action below. As instructed I swapped in my conversion ID into your code (replacing the XXXX) and couldn't get a positive response. I then also tried swapping in the conversion label shown in my default code (k5xgCKSpVRCIle70Aw) in both places where it's referenced in the snippet. No avail on either try. When I swapped back in the default code (without the subtotal token) and did a test the Google stats indicator showed up, suggesting a successful conversion.
MY SALE ACTION'S DEFAULT CODE:
<!-- Google Code for AP sale via cart Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1050380936;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "f2f8e1";
if (1) {
var google_conversion_value = 1;
}
var google_conversion_label = "k5xgCKSpVRCIle70Aw";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/1050380936/?value=1&label=k5xgCKSpVRCIle70Aw&script=0 "/>
</noscript>
AND THIS IS WHAT I TRIED WHEN I COMBINED MY DEFAULT WITH YOUR CODE:
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1050380936;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (%VAR(order_subtotal)%) {
var google_conversion_value = %VAR(order_subtotal)%;
}
var google_conversion_label = "k5xgCKSpVRCIle70Aw";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript><img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/1050380936/?value=%VAR(order_subtotal)%&label=k5xgCKSpVRCIle7 0Aw&script =0">
</noscript>
Thanks again for the info, I very much appreciate it.
Comment
-
Re: Google Adwords Conversion Tracking Code (Miva 5)
So here's an update on this situation for those who may be in a similar quandary. After some characteristically excellent support from Bill Weiland I was able to get the following code to work for me:
<mvt:item name="toolkit" param="subtotalorder|ordersubtotal" />
<!-- Google Code for AP sale via cart Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = XXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "YYYYY";
if (&mvte:global:ordersubtotal;) {
var google_conversion_value = (&mvte:global:ordersubtotal;);
}
var google_conversion_label = "ZZZZZ";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/XXXX/?value=&mvte:global:ordersubtotal;&label=ZZZZZ&script=0"/>
</noscript>
Now here are the tricky bits:
- First off, this method pre-supposes that you're using Weiland's Toolkit for Miva 5 (the value of which can't be overstated). It's what allows you to grab a value for the order subtotal by way of the following Toolkit item:
<mvt:item name="toolkit" param="subtotalorder|ordersubtotal" /> - Now to start off, in the Google Adwords admin you need to enter the following in your Adword action's 'Revenue for your Action' box:
&mvte:global:ordersubtotal; - When you generate the code snippet for your action you will notice that it generates the following line within the snippet:
if (&mvte:global:ordersubtotal;) {var google_conversion_value = &mvte:global:ordersubtotal;;}
This part of the code contains problematic syntax so you need to modify it like so:
if (&mvte:global:ordersubtotal;) {var google_conversion_value = (&mvte:global:ordersubtotal;);} - Then you need to add the following ABOVE the code snippet that you'll be inserting into your conversion success page:
<mvt:item name="toolkit" param="subtotalorder|ordersubtotal" /> - The end result is the code snippet that's shown above with the colored variables corresponding to your particular Adwords action (XXXX being your Adword campaign's conversion ID, YYYYY being the background color of your Google stats indicator and ZZZZZ being the conversion label specific to your action). You can insert this code into the landing page that you're using to register a successful conversion (in our case it was inserted into the Footer for our INVC page).
- The final piece of this puzzle relates to 'verifying' the Purchase/Sale action that you've just created. Because the code that was automatically created does not precisely match the code that's inserted in your page (since you modified the syntax), it will not verify (even after inserting it into a static page and then using that page's URL to try to verify the code). I ended up contacting Adwords support about the discrepancy and they changed the status of the action to 'verified'. This probably isn't necessary though - I suspect that if you just insert the code that's automatically generated for the action into a static page and use that URL for verification purposes (even though that code is actually dysfunctional given the syntax) you should get a 'verified' status.
I think that describes the ins and outs of it. Hope it's useful for folks with the same problem. Thanks again for those who offered their assistance on this.
Best,
Michael
SNGLast edited by SNG; 08-06-08, 11:15 PM.
Comment
- First off, this method pre-supposes that you're using Weiland's Toolkit for Miva 5 (the value of which can't be overstated). It's what allows you to grab a value for the order subtotal by way of the following Toolkit item:
-
Re: Google Adwords Conversion Tracking Code
I too am having a problem getting conversions to be tracked.
Toward the end of this existing tread the talk runs to having
it work in MIVA 5. I am seeking a MIVA 4 solution.
So far I have taken the google generated snippet and placed it in
the footer of the INVC screen.
Should I place it somewhere else, or do I need to modify the snippet in some way?
Thank You.
Comment
-
Re: Google Adwords Conversion Tracking Code
This doesn't work like that for me. I have Weliand's Toolkit installed and the item is enabled on the invoice page.
Code:<mvt:item name="toolkit" param="subtotalorder|ordersubtotal" /> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = xxx; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if (&mvte:global:ordersubtotal;) {var google_conversion_value = (&mvte:global:ordersubtotal;);} var google_conversion_label = "G-sECOSVbxDGt4XuAw"; //--> </script> <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script>
Code:<!-- var google_conversion_id = xxx; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if () {var google_conversion_value = ();} var google_conversion_label = "G-sECOSVbxDGt4XuAw"; //-->
Comment
-
Re: Google Adwords Conversion Tracking Code
I am also looking for the Google conversion tracking code solution for people using MIVA 4. Did you get an answer by any chance?
I tried to use the code posted by emione, but I got a non-fatal warnings [20005] (line1/char1) The string contains OpenTokens, but does not start with '%OUI''
Originally posted by JMig View PostI too am having a problem getting conversions to be tracked.
Toward the end of this existing tread the talk runs to having
it work in MIVA 5. I am seeking a MIVA 4 solution.
So far I have taken the google generated snippet and placed it in
the footer of the INVC screen.
Should I place it somewhere else, or do I need to modify the snippet in some way?
Thank You.
Comment
-
Re: Google Adwords Conversion Tracking Code
Did you ever find an answer where to put Yahoo analytic code in the Invoice Header field?
Originally posted by JMig View PostI too am having a problem getting conversions to be tracked.
Toward the end of this existing tread the talk runs to having
it work in MIVA 5. I am seeking a MIVA 4 solution.
So far I have taken the google generated snippet and placed it in
the footer of the INVC screen.
Should I place it somewhere else, or do I need to modify the snippet in some way?
Thank You.
Comment
-
Re: Google Adwords Conversion Tracking Code
Originally posted by TrishRedhop View PostThis doesn't work like that for me. I have Weliand's Toolkit installed and the item is enabled on the invoice page.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Re: Google Adwords Conversion Tracking Code
Originally posted by WaterLeslie View PostI tried to use the code posted by emione, but I got a non-fatal warnings [20005] (line1/char1) The string contains OpenTokens, but does not start with '%OUI''
Ahhhh, the warning message is quite literal - you need to make sure that the first 5 characters entered in the field are %OUI% - then add the snippet after it.Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment