Description of scripts implementation into flash application


If flash reloads at least 40% of the screen (as defined in FDIM rules http://fdim.dk/?pageid=108), it can be calculated as a page view and the monitoring function can be called.

  • At the beginning please make sure that you use the newest version of the main script which is available in gemiusTraffic interface.

  • In your flash call javascript function:

    pp_gemius_hit("IDENTIFIER")

    where IDENTIFIER - identifier from gemiusTraffic account (NOTE: don't use the identifier for a main page, create a new one).

    The example:
    <a href='javascript:if (typeof(pp_gemius_hit)=="function") pp_gemius_hit("IDENTIFIER");'> click here to see new big image</a>

  • Regular tracking script has to be also pasted into html code of the main page (before you call pp_gemius_hit function).

  • But if flash loads when the html page is loaded then the tracking script has to be modified by adding a new variable "var pp_gemius_nhit = 1;". Please find below the modified version of the tracking script:

    <script type="text/javascript">
    <!--//--><![CDATA[//><!--
    var pp_gemius_nhit = 1;
    //--><!]]>
    </script>
    <script type="text/javascript" src="PATH_TO_THE_MAIN_SCRIPT-xgemius.js"></script>

    Parameter pp_gemius_nhit causes that the page view is not generated when the page is loaded.

  • When it is already done, contact Gemius by email audience-dk@gemius.com in order to have the implementation verified.

back to the main page