Google Awwords conversion code

3 years 9 months ago
Posts: 283
More
Topic Author
Google Awwords conversion code #3063
Hi again mani. I need to place a conversion code from Google Adwords. This code should go into the page where a definitive sale is confirmed. Like when "Thank you for your order..." page displays. Could you point me to the file where I should place this code?

Tips on this: support.google.com/adwords/answer/86276?&hl=sv.

This is the code:

<!-- Google Code for Secrid_köp Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 940514252;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "REKbCK329GAQzLe8wAM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/940514252/?label=REKbCK329GAQzLe8wAM&guid=ON&script=0"/>
</div>
</noscript>

Please Log in or Create an account to join the conversation.

3 years 9 months ago
Posts: 1284
More
Google Awwords conversion code #3067
Hi
You can place the code in following file
templates\<YOUR TEMPLATE NAME>\html\com_virtuemart\themes\default\checkout\order_done_start.php

Please Log in or Create an account to join the conversation.

3 years 9 months ago
Posts: 283
More
Topic Author
Google Awwords conversion code #3071
Thanks mani.

Is it ok to place it just above? :

// Output Section End
$vmuikitlib->buildSectionEnd(); ?>

(I don't want to break anything)
The following user(s) said Thank You cnorin

Please Log in or Create an account to join the conversation.

3 years 9 months ago
Posts: 1284
More
Google Awwords conversion code #3072
Yes, no problem. You can place it there.

Please Log in or Create an account to join the conversation.

3 years 9 months ago
Posts: 283
More
Topic Author
Google Awwords conversion code #3113
Hmm, the code didn't work. But that is not your problem.
Many thanks for the help, anyway - you answered my question.

Please Log in or Create an account to join the conversation.

3 years 8 months ago
Posts: 283
More
Topic Author
Google Awwords conversion code #3200
Hi again

I have spoken to Google support about this and the code i correct, but the file (page after buy) seems to be wrong.
Any idea where I should insert the conversion code?

Thanks

Please Log in or Create an account to join the conversation.

3 years 8 months ago
Posts: 1284
More
Google Awwords conversion code #3202
Hello
For Klarna
templates/<your template name>/html/com_virtuemart/vmplg/default.php
For other payment
templates\<YOUR TEMPLATE NAME>\html\com_virtuemart\themes\default\checkout\order_done_start.php
The following user(s) said Thank You betterlead

Please Log in or Create an account to join the conversation.

3 years 8 months ago
Posts: 283
More
Topic Author
Google Awwords conversion code #3206

mani wrote: Hello
For Klarna
templates/<your template name>/html/com_virtuemart/vmplg/default.php


Hi again mani.

Is that the file used with Klarna CheckOut or just the standard Virtuemart made by Valerie? Just to be sure. Is KCO using this one too?

Please Log in or Create an account to join the conversation.

3 years 8 months ago
Posts: 1284
More
Google Awwords conversion code #3207
Yes.
There is two different file calling by virtuemart
1 ) if you send to another page for payment,
2) payment done without redirect like credit cart, case on delivery ,,etc.

Please Log in or Create an account to join the conversation.

3 years 8 months ago 3 years 8 months ago by . Reason: Sorry, php-files can't be attached, I suspect
Posts: 283
More
Topic Author
Google Awwords conversion code #3208
Ok, so this will cover it? See attached files.

many thanks
/D

<?php

/**
*
* Show Confirmation message from Offlien Payment
*
* @package VirtueMart
* @subpackage
* @author Valerie Isaksen
* @link www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 3217 2011-05-12 15:51:19Z alatak $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

echo "<h3>" . $this->paymentResponse . "</h3>";
if ($this->paymentResponseHtml) {
echo "<fieldset>";
echo $this->paymentResponseHtml;
echo "</fieldset>";
}

<!-- Google Code for Secrid_köp Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 940514252;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "REKbCK329GAQzLe8wAM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/940514252/?label=REKbCK329GAQzLe8wAM&guid=ON&script=0"/>
</div>
</noscript>

// add something???

AND

<?php // no direct access
defined('_JEXEC') or die;

/**
* Theme: VirtueMart Theme
*
* @package FrontEnd / Template
* @author vmuikit.com /Claes Norin
* @copyright (C) 2013 - 2015 Vmuikit.com.
* @license GNU/GPLv2 www.gnu.org/licenses/gpl-2.0.html
*/


// Include The MoWebSo Library
require_once("components/com_vmuikit/libraries/joomla/thirdparty/virtuemart.php");
$vmuikitlib = VmuikitVirtuemart::getInstance();
$vmuikitlib->headerdata();



// Load Template CSS
// $vmuikitlib->loadTemplateCSS('checkout/emptycart');


// Output Section Start
$vmuikitlib->buildSectionStart(true);

if (vRequest::getBool('display_title',true)) {
echo "<h3>".vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";
}

$this->html = vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED') );

?>
<h4 class="uk-h4"><?php echo JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU'); ?></h4>

<div class="message">
<div class="spacer">
<?php echo $this->html; ?>
</div>
</div>

<?php

if (vRequest::getBool('display_loginform',true)) {
$cuser = JFactory::getUser();
if (!$cuser->guest) echo shopFunctionsF::getLoginForm();
}

<!-- Google Code for Secrid_köp Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 940514252;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "REKbCK329GAQzLe8wAM";
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/940514252/?label=REKbCK329GAQzLe8wAM&guid=ON&script=0"/>
</div>
</noscript>

// Output Section End
$vmuikitlib->buildSectionEnd(); ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum

Latest News from JoomlaPro.com

VMuikit 5 is finally out!

Our next version of our popular VMuikit package is out. This time we have some quite nice new features.

Electroneum Joomla/VirtueMart plugins

JoomlaPro.com are not only web & Joomla enthusiast, we cannot stay away from checking other tech trends as well. The last few years its been hard to miss the crypto/blockchain ...

New plugin: Secure Joomla Login

We have released a new plugin that adds a extra PIN code and a reCaptcha v2 check on Joomlas login. Security is very important on all fronts of a website. One often missed one is ...

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :