Google adwords conversion

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
11 years 6 months ago #102487

You could potentially put it in one of the checkout view files, no ?

For example, the "address" file of the view "checkout" that you can edit via the menu Display>Views will only display if the user is logged in. So you could potentially add your code after:
<div style="clear:both"></div>

That's the only solution I can see.

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

  • Posts: 17
  • Thank you received: 1
10 years 2 months ago #170795

Hi,

I am using google adwords for paid advertising and also using google analytics. But currently i am unable to track the conversion. When i add the adword conversion code in the payment plugins end file, i get a blank page on my website when the customer clicks on the payment option. The payment option for which i face this error is ccavenue.
also, can somebody can help in tracking conversion via google analytics. The google analytics plugin i hikashop does not work. i have tried it. so i have placed the google analytics code in the site so i get the trffice and source figures but no conversion data.

Can somebody help please

Regards,
amit

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #172269

Hi,

I have made a re-factoring of the HikaShop plugin for Google analytics.
The new plugin will be compatible with "universal analytic" and will allow to track the sales when an order is confirmed by payment callbacks (when your payment provider call your website to validate that the payment has been made).
The plugin will be in the next release (2.3.3) which should be publish before the end of the month (still some developments in progress).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 344
  • Thank you received: 3
10 years 3 weeks ago #178138

Jerome wrote: Hi,

I have made a re-factoring of the HikaShop plugin for Google analytics.
The new plugin will be compatible with "universal analytic" and will allow to track the sales when an order is confirmed by payment callbacks (when your payment provider call your website to validate that the payment has been made).
The plugin will be in the next release (2.3.3) which should be publish before the end of the month (still some developments in progress).

Regards,


Is it the plugin named "HikaShop Google Dynamic Remarketing (conversion tracking) plugin" you are talking about here ?

Last edit: 10 years 3 weeks ago by river.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #178168

Hi,

No, it is the system plugins called : "Hikashop Google Analytics Plugin".

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 344
  • Thank you received: 3
10 years 3 weeks ago #178239

So what does the "HikaShop Google Dynamic Remarketing (conversion tracking) plugin" do ?

I can't seem to find any documentation on it.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 3 weeks ago #178263

Hi,

It's an integration with Google conversion ( www.googleadservices.com/pagead/conversion.js )

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 35
  • Thank you received: 3
7 years 11 months ago #258366

Hi,
I have coded something poorly to track conversions with Google AdWords in the footer of file templates/protostar/index.php.
Below is a snippet that I use. It tracks conversions from shopping ads that are based on price feeds for Google Merchants.
The idea is to generate conversions inside AdWords. Each conversion is a JavaScript snippet.
To my understanding, they each differ only in the google_conversion_label that is used twice (once in .js, once for the image tracker).
That snippet goes into the $map array. I have padded mine with xxx so that someone who uses the snippet does not cross-fire easily.
Improvement suggestions welcome e. g. on how to tap into the controller for the language-independent, generic triggers.
best regards - Klaus

<?php
$map = array (
	'/component/users/?view=registration&layout=complete' => '5SwhCJrl52wQ6YjR9wMxxx', // register user 2 (submitted)
	// '/component/users/?view=registration' => 'pC9yCJfl52wQ6YjR9wMxxx', // register user 1 (input)
	'component/users/?task=registration.activate&token=' => 'qDV5CKDl52wQ6YjR9wMxxx', // register user 3 (confirmed)
	'/component/users/profile.html' => 'fIlYCOHk52wQ6YjR9wMxxx', // login
	'/warenkorb-anzeigen.html' => 'Q4TVCOCUgG0Q6YjR9wMxxx', // go to cart ??? German only - generic one ???
	'/zur-kasse-gehen.html' => 'K71SCNqj_GwQ6YjR9wMxxx', // checkout 1
	'/checkout/task-step/step-2.html' => 'DGFNCOaj_GwQ6YjR9wMxxx', // checkout 2
	'/checkout/task-step/step-3.html' => 'rfWyCOmj_GwQ6YjR9wMxxx', // checkout 3
	'/checkout/task-step/step-4.html' => '9VQYCNitgG0Q6YjR9wMxxx', // checkout 4
	// '/xxx/' => 'GMBBCJergG0Q6YjR9wMxxx', // paid
);
$uri = $_SERVER['REQUEST_URI'];
$found = false;
foreach($map as $key=>$value) {
	if (strpos($uri, $key) !== false) { $found = true; break; };
};
if($found) {
?>
<!-- Google Code for ... Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1056195689;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "<?= $map[$key] ?>";
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/1056195689/?label=<?= $map[$key] ?>&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<?php
}
?>

Last edit: 7 years 11 months ago by Jerome. Reason: [code] is nice

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

  • Posts: 132
  • Thank you received: 2
6 years 3 months ago #296359

As of today, is there a built-in solution to track Adwords campaigns in Hikashop? I can see the " HikaShop Google Dynamic Remarketing (conversion tracking) plugin", but I haven't found any clear explanation using Google's terminology as to what it is for. Any help on this would be greatly appreciated :)

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 3 months ago #296395

Hi,

The remarketing plugin is to track conversions to the product page (so people accessing pages coming from adwords).
The HikaShop Google Analytics plugin is to send ecommerce data to Google Analytics after the purchase.

To track the adwords on other pages like @hactic has done, you can do as he did, or in view overrides.

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

  • Posts: 30
  • Thank you received: 2
5 years 8 months ago #304348

Hi, Nicolas.

So, to track Google Ads conversions, we'll need to add the Google Ads account to the Dynamic Remarketing plugin, and then add the Google Ads ID to the Google Analytics plugin?
e.g.:
Google Analytics Account 1: UA-xxxxxxxx-x
Google Analytics Account 2: AW-xxxxxxxxx

Do we still need to put the Google Ads code in the page header, and the conversion tracking script into the checkout_end override file?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 8 months ago #304390

Hello,

The Google Analytics plugin is just for Google Analytics, not Adwords (so it won't accept a Adwords account).
You can customize the views (as explained in that thread) to add the required code ; you can use a dedicated plugin (there is one that we might release on the marketplace) and you can also configure your Analytics to perform a bridge with Adwords.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: n00bster

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

  • Posts: 30
  • Thank you received: 2
5 years 8 months ago #304403

HI, Jerome.

Thanks for the reply.
Can I get some assistance on how to get Google Ads working with HikaShop? From what I've been reading here, the Google documentation/instructions doesn't really apply.

The setup I have now is:
1. No Google code manually added to the site template (<head> script)
2. Hikashop Google Analytics plugin enabled, and site Google Analytics ID (UA-xxx...) in place.
3. Hikashop Remarketing plugin enable, and site Google Ads ID (AW-xxx...) in place.
4. Google script in the checkout_end View:
<script> function gtag_report_conversion(url) { var callback = function () { if (typeof(url) != 'undefined') { window.location = url; } }; gtag('event', 'conversion', { 'send_to': 'AW-xxx.../xx...xx', 'transaction_id': '<?php echo $this->order->order_number; ?>', 'event_callback': callback }); return false; } </script>

...but Google Ads is still reporting that it can't verify conversion.
Any help would be much appreciated.

Thanks

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 8 months ago #304420

Hi,

You need to configure google ads to import the statistics from google analytics:
support.google.com/analytics/answer/1034306?hl=en
You also want to first make sure that you get the transactions in the ecommerce section of your google analytics. If you don't, please provide a screenshot of the settings of your google analytics plugin. And please check that your orders status is properly set to "confirmed" (it means that they have been paid and the payment notification has been received by your website).
Also, you DO want to have a normal analytics code added to your pages. The plugin from us is only for the transactions themselves and you'll want the normal analytics for the rest of the statistics.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 8 months ago #304506

Hi,

Please do not send replies via private message but to the public forum. We might miss them otherwise.
If you don't see your transactions in google analytics, then, as I asked in my previous message:

please provide a screenshot of the settings of your google analytics plugin. And please check that your orders status is properly set to "confirmed" (it means that they have been paid and the payment notification has been received by your website).

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

  • Posts: 30
  • Thank you received: 2
5 years 8 months ago #304765

Hi, Nicolas.

I've set up Google Analytics e-Commerce Conversion Tracking to monitor the Checkout End page of the site, and it seems to be working. (see Google Analytics Conversion JPG attachment). However, setting up the Google Ads Campaign to Import from Google Analytics doesn't seem to be working (see Google Ads Conversion JPG attachment).

I've also attached a screenshot of the Hikashop Google Analytics plugin settings.

Please help/advise.

Google Ads Conversion (import from Google Analytics)



Google Analytics e-Commerce Conversion tracking (track URL)


HIkashop Google Analytics Plugin

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 8 months ago #304797

Hi,

You should look in the "Aquisition" menu. That's where you'll see the transactions. You first need to make sure that you have transactions there.

Also, your screenshot doesn't contain all the settings of the plugin. Please provide screenshots of the rest of the settings.

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

  • Posts: 30
  • Thank you received: 2
5 years 8 months ago #304840

Sorry about that. Here's the rest of the plugin settings:



Also, the Acquisitions>Google Ads>Shopping Campaigns section of the Google Analytics console is showing traffic/stats. But they're still not showing in the Google Ads console.

Attachments:
Last edit: 5 years 8 months ago by jtquinto.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 8 months ago #304867

Hi,

I went to check on my end, and the menu changed in Google analytics:
monosnap.com/file/68mOzSt2I1oIjKxFXwlCXnpEGM7KZF
So you need to go in that Conversions->Ecommerce->Transactions menu.
There, you'll see the transactions of your shop.
If you see them there, then the issue is with the procedure to import the data from Google Analytics to Google Ads (I'm not familiar with that though).
If you don't see them there, then there is an issue with the sending of the data from the HikaShop plugin to Google Analytics. In that case, I would recommend to activate the last three settings of your Analytics plugin and that should help. And as I said in a previous message, please check that the status of your orders on your website is "confirmed" or they won't be taken into account.

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

Time to create page: 0.140 seconds
Powered by Kunena Forum