Jump to content

AdSense code changes on save


Recommended Posts


Quick question, I've noticed my AdSense seem to disappear from my some pages, 

after a quick investigation ive notice that the script that is pasted in seems to change. is this why the advert no longer shows? i am thinking this is why.

code i paste in source:-

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- footer advert -->
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});

then it seems to change to this after save

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><!-- footer advert --><script>
(adsbygoogle = window.adsbygoogle || []).push({});

the advert seems to show for a short time maybe browser cache but then disappears? Nothing wrong with my AdSense account all authorised and working.

thanks for any advise


Link to comment
Share on other sites

If this is the rich-text editor (CKEditor), for the product description for example, then the case may be that the editor may be removing the <ins> tag. The reason for that may be because this tag is assumed to contain actual text that acquires the semantic meaning of the <ins> tag. But there isn't any in your example.

Please see: https://forums.cubecart.com/topic/53539-text-editor-keeps-deleting-code/


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...