Solved

Error showing in header

AbdulMuqeet663
Tourist
12 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)

Rishihuptech
Shopify Partner
351 63 68

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
237 35 43

Hello @AbdulMuqeet663 ,

 

I saw your code you add gtag for header?

Custom theme and app [remix] expert.
Buy me a Coffee
Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp

Rishihuptech
Shopify Partner
351 63 68

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
12 0 0

it's still same

Rishihuptech
Shopify Partner
351 63 68

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
12 0 0

can you please check i guess its removed

Rishihuptech
Shopify Partner
351 63 68

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