Google Analytics for Confluence plugin - "Who's viewed this page?" displays "No result found."

Hello all,

I have installed the plugin Google Analytics for Confluence. It was working fine till now, I assume that was correctly configured, but now when I click on "who viewed this" it doesn't show any user (and there are users that visited the page, I know this for sure)

I have the latest update version of the plugin. Is this happening to anyone else? Am I missing out something evident?

save image

2 answers

1 accepted

5 votes
Accepted answer
David Simpson Community Champion Jun 19, 2014

Hi @Consu

Does your data collection JavaScript contain the following?

_gaq.push(['af._setCustomVar', 2, 'confluence-user-key', AJS.params.userKey, 1 ]); should be able to find this in Confluence Admin | Custom HTML or by viewing the source of the page.

We can also continue this with our support system - email with updates.


Go to the configuration screen in Confluence Admin | AppFusons-Add-Ons | Google Analytics for Confluence.

Perform Steps 1, 2 & 3. Importantly, you must review the JavaScript added in the At end of the HEAD in the Custom HTML and click the Save button.

Check that the above JavaScript now appears on the page (view source and search can help). If all is good at this point, browse some pages then wait a few hours for Google Analytics to process the results.

Hello David, and thanks.

No there is not such a line in the Custom Html. It reads

AJS.$(document).ready(function() {
  if (AJS.$('#wysiwygTextarea_ifr').length > 0) {

(field At the end of BODY)
where should I add that line, if at all?

David Simpson Community Champion Jun 20, 2014

@consuCheck the edits above. Mail me at info@appfusions.comif theres any further problems.

Hey Consu,

Did this happened after upgrading Confluence?

Did you tried Rebuild Confluence Content Indexes from Scratch and see if the plugin shows any data?

Thanks and Regards,

David|Atlassian Support

Hello David, thanks for the answer. Yes it did happen after an upgrade. I need to try this solution and let you know if it works!

David Simpson Community Champion Jun 19, 2014

This won't work. See my suggestion.

Yeah, check David suggestion :p.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

783 views 33 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you