Why is an error appearing on the header of my website?

Solved

Why is an error appearing on the header of my website?

AbdulMuqeet663
Tourist
13 0 0

HELLO PLEASE SOME ONE HELP ME THERE IS ERROR SHOWING ON MY WEBSITE KINREX.COM PLEASE PLEASE HELP ME I AM WORRIED. SCREENSHOT ALSO ATTACHED.

 

THANKS

Accepted Solution (1)

Huptech-Web
Shopify Partner
1158 232 263

This is an accepted solution.

Hello @AbdulMuqeet663 ,

 

I can see there is a script added to the theme.liquid <body> tag.

Replace the "window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-11435456946');" with below syntax:

 

<script>
window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-11435456946');

  </script>
If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Replies 6 (6)

iffikhan30
Shopify Partner
292 37 58

Hello @AbdulMuqeet663 ,

 

I saw your code you add gtag for header?

Custom theme and app [remix] expert.

Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp

Huptech-Web
Shopify Partner
1158 232 263

This is an accepted solution.

Hello @AbdulMuqeet663 ,

 

I can see there is a script added to the theme.liquid <body> tag.

Replace the "window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-11435456946');" with below syntax:

 

<script>
window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'AW-11435456946');

  </script>
If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
AbdulMuqeet663
Tourist
13 0 0

it's still same

Huptech-Web
Shopify Partner
1158 232 263

Can you please share the screenshot where you replaced the code in the theme.liquid?

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
AbdulMuqeet663
Tourist
13 0 0

can you please check i guess its removed

Huptech-Web
Shopify Partner
1158 232 263

Hello @AbdulMuqeet663 ,

 

I checked the front end just now and the Header is looking fine!
image.png

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required