Google Analytics Plugin

  • Hi! The event tracking info will appear after some time under the Content -> Event Tracking in GA menu. Check that section again later.

  • You don't have to customize anything on alanytics, it will work on default settings.
    I've checked event tracking on my account, and all works fine, but the statistics for previous day appeared there only on the next day.

  • Updates to the plugin have been released. The major changes include:

    • Support for krpanoJS viewer (HTML5 version of the plugin supports iPod Touch/iPhone/iPad)
    • Easy events tracking using event tag


    Check out changelog, documentation and demo for details.
    Also, I can't mention exciting new Real Time tracking feature in Google Analytics admin interface! Check it out!

    All current customers will recieve update for free. Check out the Updates section to know how to get the updated version.
    Btw, you can get notified about new plugins and updates by subscribing to newsletter here.

    P.S. I have a plans to release a small update to SWFAddress plugin in a couple of days, which will make easier Google Analytics plugin integration if you use both plugins in your virtual tour. Details coming soon.
    And I'm still looking forward to see your feature requests!

  • Hi! just got your plugin... *thumbsup*

    have a question regarding google's analytics event documentation:

    trackEvent(category, action, opt_label, opt_value, opt_noninteraction)

    in the documentation for the trackevent you specify 4 options:
    (category, action, label, value)

    but according to the analytics events documentation there is a 5th option:

    opt_noninteraction

    does the plugin have this? --- and/or is it set to interact o not ?

    im interested that some event hits will not be used in bounce-rate calculation!


    And I have a suggestion/request ....

    maybe a with the debug option on there is a way to set the top message to stay longer?
    maybe a variable amount setting?
    I know the list is center bottom but.. there is also no way to scroll back if you send more events/pages ...

    Just an idea *smile*

    thanks!

  • Hi


    Just been testing the GA plugin with html5.

    Uploaded your demo and all works fine. I can see the stats in GA.

    However config I have is slightly different, I have a single html file that calls a single xml file which contains multiple scenes, for example:

    <krpano version="1.0.8" onstart="startup();">
    <action name="startup">
    if(scenetoload === null, set(scenetoload,pano1));
    loadscene(get(scenetoload),blend(4));
    </action>
    <!-- Load Google Analytics Plugin -->
    <include url="analytics.xml"/>


    <!-- ** pano1 ********************************************************************************************** -->


    <scene name="pano1" title="pano1">
    <view limitview="range" vlookat="0" vlookatmin="-65" vlookatmax="65" fovtype="MFOV" fovmax="85" maxpixelzoom="4.0" />
    <preview url="../images/preview/pano1_preview.jpg" />
    <image>
    <left url="../images/pc-med-res/pano1_l.jpg" />
    <front url="../images/pc-med-res/pano1_f.jpg" />
    <right url="../images/pc-med-res/pano1_r.jpg" />
    <back url="../images/pc-med-res/pano1_b.jpg" />
    <up url="../images/pc-med-res/pano1_u.jpg" />
    <down url="../images/pc-med-res/pano1_d.jpg" />
    <mobile>
    <left url="../images/iphone/pano1_l.jpg" />
    <front url="../images/iphone/pano1_f.jpg" />
    <right url="../images/iphone/pano1_r.jpg" />
    <back url="../images/iphone/pano1_b.jpg" />
    <up url="../images/iphone/pano1_u.jpg" />
    <down url="../images/iphone/pano1_d.jpg" />
    </mobile>
    <tablet>
    <left url="../images/ipad/pano1_l.jpg" />
    <front url="../images/ipad/pano1_f.jpg" />
    <right url="../images/ipad/pano1_r.jpg" />
    <back url="../images/ipad/pano1_b.jpg" />
    <up url="../images/ipad/pano1_u.jpg" />
    <down url="../images/ipad/pano1_d.jpg" />
    </tablet>
    </image>

    <hotspot name="arrow-90"
    url="../ipad-hotspots/arrow.png"
    ath="90"
    atv="15"
    onhover="showtext('Go Forward ',hotspottextstyle);"
    onclick="loadscene(pano2,null,merge,blend(1)) ;set(view.hlookat,90);"
    />
    <include url="pano1-bookcases.xml" devices="desktop" />
    </scene>

    pano2...

    pano3...

    etc

    All I want to do initially is record in GA each time a user views a pano, so what code do I have to add to a scene (if any)?
    Also what code do I have to add to analytics.xml in order to do this, I tried:

    <krpano>
    <plugin name="ga"
    url="../plugins/analytics.swf"
    alturl="../plugins/analytics.js"
    keep="true"
    preload="true"

    mode="auto"
    debug="false"
    account="UA-1234567-8"
    prefix="/test"
    parsepaths="true"
    >
    <pano name="pano1"
    xmlurl="combined.xml"
    pageurl="/pano-1-test/"
    />

    </plugin>

    </krpano>


    But I do not see any stats appearing in GA.

    Thanks in advance for help.

    Tim

  • Figured it out myself...


    Add


    <events onloadcomplete="plugin[ga].trackpageview(/pano1/)" />


    to each scene


    If you want to do the same when user clicks on a hotspot, add:


    onclick="plugin[ga].trackpageview(/pano1/);


    You will then get /test/pano1/ appearing in GA


    cheers

    Tim

  • Hi,

    it seems that I can´t get global events to work?! Here is the code:

    All local trackevents are working fine like "plugin[ga].trackevent('Pano Events', 'Blend Pano');"! Does anybody has an idea what´s wrong with the global events?
    I use scenes instead of single xml-files!

    Thanks and best regards
    Nupsi

  • Hi, could you please send me all your XML files?


    Sorry Jaydee, but that´s not possible! But the analytics.xml looks excactly like I posted. And like I said, everything else works just fine, except for global events!
    For the GA-Plugin to recognize scenes I have to put this into every scene: "<events onpreviewcomplete="plugin[ga].trackpageview(/lobby/)"/>" - which is kind of annoying.

    Thanks and best regards
    Nupsi

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!