Disabling Google Analytics while embedding discourse as comments


(Quintin Par) #1

After adding discourse as the commenting solution my page views have increased dramatically while unique users remained more or less the same.

I suspect GA is called twice. This issue is briefly discussed here.


Are others facing the same issue?

I don’t want to disable GA globally because the forum gets referral traffic outside of my blog.


(Jeff Atwood) #2

Can we verify that google analytics isn’t embedded in the embedding case @techAPJ? I don’t think it should be.


(Arpit Jalan) #4

I verified locally that google analytics code isn’t getting included on blog while embedding comments.


(Quintin Par) #5

There seems to be a bug here.


The arrow points to when I removed the GA code from discourse. The variation is when the code was added. The bounce rate went back up and page views fell back to normal. You’ll also see the corresponding pages/session increase and decrease.

I am going to reinsert the GA code and will report back.

Edit:
And here’s the corresponding analytics for the forum. The forum page views come only from commenting system.


From November 30th onwards the GA code was removed.