locked
add google analityc to metro app

    Question

  • hi all

    i am installed w8ga on command line windows visual 2012, but i have problem. the problem at bellow

    Successfully installed 'w8ga 2.3'.
    Directory '' is not empty. Skipping...
    Successfully uninstalled 'w8ga 2.3'.
    Install failed. Rolling back...

    Install-Package : Failed to add reference to 'DT.GoogleAnalytics.Metro'.
    At line:1 char:1
    + Install-Package w8ga
    + ~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand 

    any body help me

    Friday, November 30, 2012 10:07 AM

All replies

  • I gave step by step instructions here:
    http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/f81ebbb9-d711-40f1-8a82-9aed44e2d8fe/

    For google analytics integration.
    • Proposed as answer by Cobra Tap Saturday, December 1, 2012 10:50 PM
    Saturday, December 1, 2012 10:50 PM
  • in your script have function at bellow:

    function track(action, label) {
            googleTrackerReadyPromise.then(function () {
                var data = {
                    category: googleTrackingCategory,
                    action: action,
                    label: label,
                    version: appVersionString,
                    appName: appName
                };
                console.log('masuk');
                console.log('Tracking: ' + action + (label ? (' : ' + label) : ''));
                document.frames['googleTracker'].postMessage(data, 'http://easibiznet.com');
            });
        }

    when i call that function in app???

    thanks

    iwan

    Wednesday, December 5, 2012 11:35 AM