Forums

facebook picking up code when attaching link (2 posts)

  1. babooza69
    Member
    Posted 2 years ago #

    usually when you attach a link to facebook it previews text and images. for me it now previews this

    -->
    
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-1111111-2']);
    _gaq.push(['_trackPageview']);
    
    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    
    //');
    //]]>

    no idea why it's previewing google analytics or whatever i put before the header. suggestions?

  2. patyuen
    Member
    Posted 2 years ago #

    Have you tried putting the GA code in the footer before /body? It would help if you linked to your site.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.