problem with additional text being added to JS code that cause it to break

Posted in: Newspaper
Post count: 3

Hi guys,

Im trying to add a simple js tag to the section of Google analytics and js code section in the theme options.
however when I paste the tag, on the site itself I get this text being added to the tag:
type=”50e177f34662e44a4c4a365e-text/javascript”

the orignial tag looks like this:
<script src=’https://www.googletagservices.com/tag/js/gpt.js’&gt;
googletag.pubads().definePassback(‘/90155224/smartereum.com/1×1′, [1, 1]).display();
</script>

the problematic tag with the additional text:
<script src=’https://www.googletagservices.com/tag/js/gpt.js&#8217; type=”50e177f34662e44a4c4a365e-text/javascript”>
googletag.pubads().definePassback(‘/90155224/smartereum.com/1×1’, [1, 1]).display();
</script>

How do I avoid this part

Post count: 35449

Hi,

Please make sure that you set the code exactly like in example:
https://www.screencast.com/t/5vvPpmuUpe

Thank you for your understanding.

Post count: 3

Hi Calin,

it was pasted exactly like you said, with our js code, which you can see at the original post. but this keeps being adding up !!!

you cann see here: view-source:https://smartereum.com/41795/xrp-recovering-xrp-price-analysis-nov-13/

this is how it suppose to look like:
<script src=’https://www.googletagservices.com/tag/js/gpt.js’>
googletag.pubads().definePassback(‘/90155224/smartereum.com/1×1′, [1, 1]).display();
</script>

but this is how it appears:
<script src=’https://www.googletagservices.com/tag/js/gpt.js’ type=”50e177f34662e44a4c4a365e-text/javascript”>
googletag.pubads().definePassback(‘/90155224/smartereum.com/1×1’, [1, 1]).display();
</script>

Please take a look and answer how to solve this. it is urgent

Post count: 35449

Hi,

I’ve inspect your source page and is look like something set the type= in all scripts https://www.screencast.com/t/WBhxpsgi6Dr
https://www.screencast.com/t/iKqpekjT
This problem is not from Google analytics , please try to deactivate all plugins, clear all caches and try to see if the problem is still there, is possible to be a plugin conflict.

Thank you.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.