Forum Discussion

Jaikrit94's avatar
Jaikrit94
Helper I
9 years ago

Google Analytics: Display Unique Visitors Dynamically

Hello,

 

I am having some difficulty in displaying the unique visitors to the website using the Google Analytics API. 

 

I want to be able to display the unique visitors (metric that is users in google analytics) within various timeframes (using a slicer) in one tile. 

 

I am currently tracking an application's performance from January 2015 to present (May 2017) and if the client asks me how many unique visitors used the application between August 2015 to August 2016, I want to be able to use the slicer to show this number in the tile. However, it seems that the tile I have assigned to do this is double counting the figure. 

 

Can someone please help me with a solution for this?

 

Thank You!

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    We will likely want more info about your model/table/relationships and what you already tried.

     

    Assume you have a table of activity that is related to a date table (that you can put on a slicer/filter) this one should be super straight forward:

     

    Unique Visitors := DISTINCTCOUNT(Activity[UniqueVisitorId])

     

    And... that's it.

    • Jaikrit94's avatar
      Jaikrit94
      Helper I

      Hello Scott,

       

      Thank you for your response. I will review the data table and shortly provide you with some screenshots of what the relationships etc. look like. 

       

      Thanks,

      • v-huizhn-msft's avatar
        v-huizhn-msft
        Microsoft Employee

        Hi Jaikrit94,

        Have you resolved your issue? As the Anonymous said, you'd better share more information, so that we can post the solution which is close to your requirement.

        Thanks,
        Angelia