+ Reply to Thread
Results 1 to 6 of 6

Thread: Google Analytics trucking code does NOT work with Flynax script!

  1. #1
    Senior Member
    Join Date
    Aug 2010
    Posts
    174

    Google Analytics trucking code does NOT work with Flynax script!

    I notice a problem that Flynax script does not support “Google Analytics” in version 4.1

    The problem consists of the following:
    When I copy and paste Google Analytics code into my Flynax classifieds software (between “head” section), I notice that there is no results coming from this trucking code. Then, I looked at HTML code in browser, and I saw that code I inserted does not show up in full. Flynax script had cut off my analytics code in half.



    This is the sample code of Google Analytics that I have inserted for trucking purposes:

    <! -- Google Analitycs trucking code START -- >

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'XX-XXXXXX-X']);
    _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);
    })();

    </script>

    <! -- Google Analitycs trucking code END -- >


    Please someone give any advice.
    Thanks
    Last edited by PGGO; March 26, 2012 at 10:07 AM.

  2. #2
    Junior Member
    Join Date
    Dec 2009
    Posts
    28
    You need to add:

    {literal}
    <! -- Google Analitycs trucking code START -- >
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'XX-XXXXXX-X']);
    _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);
    })();
    </script>
    <! -- Google Analitycs trucking code END -- >
    {/literal}

    From here: http://www.flynax.com/forum/showthre...de-integration
    Last edited by Vitor Reis; April 4, 2012 at 09:25 PM.

  3. #3
    Senior Member
    Join Date
    Aug 2010
    Posts
    174
    Thank you Vitor Reis,

    Your suggestion is working just perfect!!!

  4. #4
    Hi Guys,

    Javascript code need to enter into {literal} tag.

    {literal}
    javascript code
    {/literal}

    Thanks.

  5. #5
    For those who are looking how is better to add Google Analytics or other code:

    We have plugin for convenient 3rd party codes management - it's <a href="http://www.flynax.com/plugins/verificationcode.html">Verification Code</a> plugin

  6. #6
    Nice ref Mike
    Free Advertising at Fyndklippet.se


+ Reply to Thread