Duplicate calls to google analytics

Jan 29, 2013 at 6:16 AM
Edited Jan 29, 2013 at 6:18 AM

I'm using the following example from the documentation to send analytics information to google analytics. I see duplicate calls to google analytics in fiddler. There was a different thread on this issue but I don't see any solution. Can someone help, please?

Code:

namespace SilverlightApplication67
{
    using System;
    using System.ComponentModel.Composition;
    using Microsoft.WebAnalytics;

    public class TrackDownload 
    {
        [Import("Log")]
        public Action<AnalyticsEvent> Log { get; set; }

        public TrackDownload()
        {
            CompositionInitializer.SatisfyImports(this);
        }

        public void LogDownload(string url)
        {
            var logEvent = new AnalyticsEvent()
            {
                ActionValue = url,
                Name = "Downloaded",
                ObjectType = GetType().Name
            };

            this.Log(logEvent);
        }
    }
}
Oct 27, 2013 at 10:35 PM
Hello,

I am also experiencing the same problem. Any progress on that?

Thank you,

Igor