[Skip to main content](#vessel-content)

#   Where toplace Google Analytics code 4 conversions

##

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#109879](#109879) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#109879 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")* was created by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")*

Where do I place the code provided by Google Analytics to measure conversions on the shop?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#109886](#109886) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#109886 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

You can configure and enable the HikaShop Google Anaytics plugin that is installed by default with the Business edition of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110075](#110075) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110075 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

I understand that but where the code goes is the problem. there is no actual page. in dynamic sites there is only one page. the index.php page. it has the framework of the page. when a link is clicked the framework call the information for all the bits that make up that page and then put the bits into their sections and displays the page. Can you advise?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110117](#110117) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110117 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

I understand that but where the code goes is the problem. there is no actual page. in dynamic sites there is only one page. the index.php page. it has the framework of the page. when a link is clicked the framework call the information for all the bits that make up that page and then put the bits into their sections and displays the page. Can you advise?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110174](#110174) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110174 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Is there any reason no-one is responding to me?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#110283](#110283) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110283 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Hi,

No one is responding because others don't know how to respond and that I was busy answering other messages, and since you post again, I don't see the thread at the top of the queue and thus you need to wait longer for me to see it ![:)](/media/kunena/emoticons/3.png ":)")
So I would advise against "uping" your messages. Also, please note that we try to prioritize users with subscriptions to our commercial editions which is not your case.

I actually don't see the link of your message with mine. I'm talking about publishing a plugin which will handle the ecommerce data sending to Google Analytics automatically.
There is no need to add any code to any page in that case.

So I'm not sure what you're trying to achieve, or if we're actually talking about the same thing ?
Could you give more context to your question ? Maybe with an example ? Do you already have a Joomla Google Analytics plugin activated on your website ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110285](#110285) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110285 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Hi Google Analytics is activated it's the conversion tracking code that i need help with as my web developer does not know where within the shop he needs to place this code so that I can track conversions and I urgently need this. Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110287](#110287) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110287 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

I want to track conversions from keywords to purchases. to do this I need to add the google conversions code from Adwords in to the purchase think you page that hikashop generates once a payment is made and the customer is returned from the payment gateway to the website where we have installed hikashop. could you please tell me where I am to post this code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#110288](#110288) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110288 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Hi,

As I said, if you activate and configure the Google Analytics plugin of HikaShop, there is no code to add anywhere as HikaShop will add it automatically where it needs to be.

If you don't want to use that plugin and hard code that in HikaShop, then it will depend on what payment methods you use. It will basically be the same that for any other tracking system:
[ www.hikashop.com/en/forum/4-how-to/68067...es.html?limitstart=0](http://www.hikashop.com/en/forum/4-how-to/68067-tracking-pixel-cj-get-cart-values.html?limitstart=0)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago [\#110293](#110293) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110293 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

The analytics code has been input and is working but the conversion tracker is not so this cannot be correct. Google have said the code they have provided me specifically for tracking needs to go onto a landing page the the user sees after they transact! Please advise

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#110295](#110295) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110295 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

I don't know of such code. What code is it ?
Did you read the link I gave which says where to add tracking code ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")**
- [![Kattycon72's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/21678-kattycon72 "View Kattycon72's Profile") Topic Author
- [ Offline](/forum/user/21678-kattycon72)

Less More

- Posts: 18
- Thank you received: 0
-
-

13 years 4 months ago -  13 years 3 weeks ago [\#110300](#110300) by [Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")  Replied by *[Kattycon72](/forum/user/21678-kattycon72 "View Kattycon72's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110300 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Below is the Google AdWords Conversion Tracking code for action type Sale of product. To start tracking this conversion you need to copy and paste the code into the source of the page you would like to track.

For tips see
[ adwords.google.com/support/aw/bin/answer...nswer=86276&amp;hl=en\_US](http://adwords.google.com/support/aw/bin/answer.py?answer=86276&hl=en_US).
Code:

&lt;!-- Google Code for Sale of product Conversion Page --&gt; &lt;script type="text/javascript"&gt; /* &lt;![CDATA[ */ var google_conversion_id = 1002043996; var google_conversion_language = "en"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "9MW3CITWvwUQ3PTn3QM"; var google_conversion_value = 0; /* ]]&gt; */ &lt;/script&gt; &lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt; &lt;/script&gt; &lt;noscript&gt; &lt;div style="display:inline;"&gt; &lt;img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1002043996/?value=0&amp;amp;label=9MW3CITWvwUQ3PTn3QM&amp;amp;guid=ON&amp;amp;script=0"/&gt; &lt;/div&gt; &lt;/noscript&gt;

Google Ireland Ltd.
Gordon House, Barrow Street
Dublin 4, Ireland

Last edit: 13 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 4 months ago [\#110302](#110302) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#110302 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

As written in the link I gave you:

> The place where to put the modifications will depend on your payment method, either in the file "after\_end" or the file "end" of the view "checkout" via the menu Display-&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 2 months ago [\#119968](#119968) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#119968 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

I have the sample problem and I need to ad the "Google analytics conversion code" on my website.

I have decided I want to place it on the checkout page (where the user fill out the name address etc).
In which file to I need to place the code ?

Tnx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 2 months ago [\#120019](#120019) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#120019 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

The two files Nicolas suggested should do the job ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 2 months ago -  13 years 2 months ago [\#120127](#120127) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#120127 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

Hi
Tnx for reply.
I read the other thread as well.

The way I understand it I need to insertt the Google analytics conversion code in both "after_end" and in the "end" file ?

The same code in both of the two files above ?

Last edit: 13 years 2 months ago by [river](/forum/user/9591-river "View river's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 2 months ago [\#120164](#120164) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#120164 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

No you just have to put it in one of these file ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#127026](#127026) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#127026 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

ok I place the code snippet in the "end" file: So the file now looks like this:
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.2.0 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php if(empty($this-&gt;html)){ echo JText::_('THANK_YOU_FOR_PURCHASE'); }else{ echo $this-&gt;html; } $this-&gt;nextButton = false; // Edit: Fix for the missing end php tag ?&gt; &lt;!-- Google Code for media Conversion Page --&gt; &lt;script type="text/javascript"&gt; /* &lt;![CDATA[ */ var google_conversion_id = 1019021354; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "jseTCL6IkQYQqpD05QM"; var google_conversion_value = 0; var google_remarketing_only = false; /* ]]&gt; */ &lt;/script&gt; &lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt; &lt;/script&gt; &lt;noscript&gt; &lt;div style="display:inline;"&gt; &lt;img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1019021354/?value=0&amp;amp;label=jseTCL6IkQYQqpD05QM&amp;amp;guid=ON&amp;amp;script=0"/&gt; &lt;/div&gt; &lt;/noscript&gt;

I saved the file, and after that I went to the front-end using Google chrome on my test-site
I put a product in the cart and moved to the checkout. Then I right-clicked and selected to view "the sourch code". But I can't find the code here ?

This is way Google telles you to do it in order to see if the code is there.
Is it in the right place, because if it was I should be able to see it ?

Last edit: 13 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14276
-
-

13 years 3 weeks ago [\#127118](#127118) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#127118 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

First, that file's code is not valid.
You need to close the PHP code before adding your HTML.
So you need to add the line:
?&gt;
just before your code.
Second, that will only display at the end of the checkout while the user is being redirected to your payment gateway.
That way, you don't have irrelevant statistics of persons who went to the checkout but didn't create any order.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[river](/forum/user/9591-river "View river's Profile")**
- [![river's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9591.gif)](/forum/user/9591-river "View river's Profile")
- [ Offline](/forum/user/9591-river)

Less More

- Posts: 344
- Thank you received: 3
-
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#127130](#127130) by [river](/forum/user/9591-river "View river's Profile")  Replied by *[river](/forum/user/9591-river "View river's Profile")* on topic *[Where toplace Google Analytics code 4 conversions](/forum/2-general-talk-about-hikashop/83905-where-toplace-google-analytics-code-4-conversions#127130 "Where do I place the code provided by Google Analytics to measure conversions on the shop? Thanks")*

OK Thank you for reply

Now My "end" file looks like this.... with the new code snippet. Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.2.0 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php if(empty($this-&gt;html)){ echo JText::_('THANK_YOU_FOR_PURCHASE'); }else{ echo $this-&gt;html; } $this-&gt;nextButton = false; ?&gt; &lt;!-- Google Code for Kvikki Nettbutikk adwords Conversion Page --&gt; &lt;script type="text/javascript"&gt; /* &lt;![CDATA[ */ var google_conversion_id = 1019021354; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "yXk2CM6GkQYQqpD05QM"; var google_conversion_value = 0; var google_remarketing_only = false; /* ]]&gt; */ &lt;/script&gt; &lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt; &lt;/script&gt; &lt;noscript&gt; &lt;div style="display:inline;"&gt; &lt;img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1019021354/?value=0&amp;amp;label=yXk2CM6GkQYQqpD05QM&amp;amp;guid=ON&amp;amp;script=0"/&gt; &lt;/div&gt; &lt;/noscript&gt;

Could you confirm that this i correct ?

Last edit: 13 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: for CODE use [code] !!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzOTA1LXdoZXJlLXRvcGxhY2UtZ29vZ2xlLWFuYWx5dGljcy1jb2RlLTQtY29udmVyc2lvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.123 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
