Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Custom Code Before Head - Doesn't Work

Featured Lock Resolved Bug
Hi,

I'm attempting to place Microsoft's UET js code in the "before head" section of Helix Ultimate. The snippet they provide is within a <script> </script> tag. When applying, the code itself just appears in a white space above the template header.

Note: This also occurs with Google Analytics code - though we are using sh404sef now to utilize Google Tag based analytics.

Could not find a plugin specific for Microsoft / Bing UET and need to see about having this work correctly.

Here's the snippet MS provides. Though note, I've edited out the property ID and replaced with "00000000" for public posting here.


<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"00000000"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//http://bat.bing.com/bat.js","uetq");</script>


Thanks!

2 Answers

Paul Frankowski - Staff

3 weeks ago #Permalink
Hi,
in Helix, there is a place to put Javascript code, but must be without starting tag.


sorry, but we cannot give you support for all code that you can find.
Maybe use plugin which allows you to use custom code.
You can find them inside JED

Paul Frankowski - Staff

3 weeks ago #Permalink
About the plugin to insert custom code, I can give you links if you cannot find it in JED.

yes, I updated Helix manual about this


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 110
Sifat

Sifat

Total Accepted Answers: 61
Toufiq

Toufiq

Total Accepted Answers: 47
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 14
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 12

118

Templates

303042

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us