Adwords plugin

  • Posts: 132
  • Thank you received: 2
5 years 4 months ago #301328

I have found multiple topics about attempts to report hikashop sales to Adwords. The most current solution seems to be to hack the return page of the payment method to report the sales to Adwords:
www.hikashop.com/forum/reports-statistic...dwords-tracking.html
But you need to add some code to also track the actual amount of the purchase.

However, I prefer to use standard solutions than to make hacks everywhere in the code. I wonder why there isn't one general plugin that does this?
I am sure that most hikashop users run Adwords campaigns too, and there is already an Analytics plugin that AFAIK does for Analytics what we need for Adwords: reporting the exact value of each sale. Why not do the same for Adwords?

If someone already made a plugin, please set it for sale so we all can buy it.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 4 months ago #301330

Hi,

With HikaShop 4.0.2 we want to add a patch to the Google Analytics plugin in order to send the adwords campaign data to Google Analytics when the transaction data is sent to Google Analytics. It should normally help with that.
However, we didn't get yet any feedback on that. It doesn't help that we never used Google Adwords and don't have an account for it, so we can't test easily if it works, even more so that the transaction information is sent on a payment notification after an order and thus is a complex process to reproduce.
If you want to help us make that happen, you can use our contact form along with a link to this thread. We'll be able to send you the patched version of the Google Analytics plugin so that you can try out the patch.

The following user(s) said Thank You: n00bster

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

  • Posts: 132
  • Thank you received: 2
5 years 4 months ago #301373

Thank you for your quick reply.
I am not sure if this is a typing mistake: "send the AdWords campaign data to Google Analytics". Did you really mean sending it to Analytics or did you actually mean sending it to AdWords?
According to our AdWords specialist, the sales must be reported directly to AdWords. Sales reported to Analytics can be imported to AdWords, but some information is lost and therefore it is difficult to fully optimize the AdWords campaigns from the Analytics data.

This is the javascript that needs to be executed to report sales to AdWords (containing the variables: <my conversion id>, <my conversion label>, <%= totalValue %> and <%= currency %>):

<!-- Google Code for Conversion tag AdWords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = <my conversion id>;
var google_conversion_label = "<my conversion label>";
if (<%= totalValue %>) {
var google_conversion_value = <%= totalValue %>;
var google_conversion_currency = <%= currency %>;
}
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/<my conversion label>/?value=<%=totalValue %>¤cy_code=<%=currency %>¤cy_code=USD&label=<my conversion label>&guid=ON&script=0"/>
</div>
</noscript>

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 4 months ago #301376

Hi,

As I said, I'm not familiar with Adwords so I'm not sure what is necessary to report useful stuff to Adwords nor how.
So my message was not a typo. It's still the Google Analytics plugin sending data to Google Analytics in HikaShop 4.0.2 and not to Google Adwords directly. I actually didn't know that this could be possible or that it could be necessary.

Thank you for sharing the information on the code necessary.
Now I still have some questions regarding that.
Normally, on an ecommerce website, you know if an order has been paid or not when the payment gateway sends a payment notification to the website server directly. So in most cases, you can't display javascript at that point.
Hence, you can display the javascript on the thank you page on your website when the user comes back to the website (but then the data won't be accurate as some users won't come back to the thank you page), or you can also use a direct cURL request to send the data when the payment notification is received.
The Google Analytics plugin we provide actually supports both modes. Does your Adwords specialist knows if there is something for the cURL request mode for Adwords ?
Also, can you have several conversion labels and/or ids on one website ?
If so, how should the plugin adding that javascript know which label and/or id to use ?

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

  • Posts: 132
  • Thank you received: 2
5 years 4 months ago #301433

Our Adwords specialist is a number cruncher, not a technical person, so he would not be the one to ask about implementation options.
As far as I can see, the Analytics plugin does a great job reporting all transactions to Analytics. When I go to Google Analytics, I can see a list of all completed transactions from hikashop, including their currency and value.
If we could just have the same values reported to Adwords. I suppose that Analytics and Adwords are similar in the ways you can report conversions?

You can have multiple goals/conversions on one website. In Adwords you define what goals you consider as a success for an advertisement.
For example you can have the following two goals:
1) The user signed up for the newsletter (=it is a lead).
2) The user purchased a product in the shop (=it is a customer).
Each goal will have their own conversion label, which is reported to Adwords when the goal had been achieved.
However, I can only imagine you would want one conversion label for a purchase. For a purchase it is important to have the exact value so you can calculate the ROI (return on investment) for each ad.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 4 months ago #301436

Hi,

1. Well the looking online and the adwords integration documentation I couldn't find any solution to track conversions with a cURL call.
So from what I understand, the conversions we could produce with that javascript integration would be less accurate than what you would get importing the data from Google Analytics (which apparently is quite common and what most people do). Maybe that's why most people are fine with the Google Analytics plugin ?

2. So you're saying that you wouldn't have different labels for different products ? Just one label for all the sales ?

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

  • Posts: 132
  • Thank you received: 2
5 years 4 months ago #301480

Hi Nicolas,

Maybe the link included in the <noscript> section of the AdWords code (in my previous post) could be used in a cURL call?

1) I think tracking the conversion at the "Thank you" page would work reasonable well, since all credit card payment methods (or at least the ones we use) redirects automatically to it when the payment is successfully completed.
Only disadvantage is that you have lost information about what order it belongs to and therefore also to the amount of the order, so that has to be solved some way.

2) Yes, according to our AdWords specialist, you would normally only want one label to track purchases. The only important thing for AdWords is to know the value that each advertisement generates (to calculate the ROI). It is not important what specific products were purchased.

We really need this feature a lot and I hope that you will consider to implement it soon. We are ready to hire a freelancer to implement it as a plugin, but I still prefer if it would be developed by Hikashop or another company that already develops 3rd party plugins. This would ensure that it will also be maintained in the future.

/Hans Jakobsen

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
5 years 4 months ago #301504

Hi,

0. The img link is an idea but I'm not sure as the initiator would be the server, not the customer, it might not work properly.

1. Finding the order data on the thank you page won't be a problem as you hav ehte order_id stored in the session of the customer. That's what the google analytics plugin uses when it is used in "javascript mode".

2. Ok, I see. thanks for the details.

3. Frankly I don't see us developing it in the short term as we didn't get much requests so far for it besides you. I suppose that most people use the Google Analytics plugin and import the data from Analytics to Adwords as we talked about before. So there isn't much insentive.
Now, if you want to pay someone to develop the plugin, you can contact our partners:
www.hikashop.com/home/our-partners.html
For example, Obsidev and TsukiDev have developed many plugins for HikaShop and published them on our marketplace so maintenance in the long run won't be a problem with them.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum