-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use ga:date in advanced segments #72
Comments
I tried to use ga:dateOfSession but it did not work |
Hi @omarcheek, it doesn't look like Instead, have you tried using |
I would recommend using this online API tool first to check which dims you should and can use: https://ga-dev-tools.appspot.com/query-explorer/ https://ga-dev-tools.appspot.com/query-explorer/
|
@mattpolicastro what I need is to find out the number of New users whose first date of visit is 2015-08-03. That also means that they can have some sessions on 2015-08-04, 2015-08-05 and so on @MarkEdmondson1234 I tried your solution. and still no success. I have built in user segment as following: |
The point of using the query explorer is its made by Google, so if it doesn’t work there it won't work anywhere, so you can quickly modify it until it is. The first date of visit isn’t recorded by default in GA. You’ll need to put it in a custom dimension if you want it. The best you could do is count the number of sessions of new visitors on 2015-08-03. |
Hi @omarcheek , you mentioned that when you tried using ga:dateOfSession in your segment definition it did not work. Did you receive an error message? Or did this not produce the result you were expecting? It would be good to know a bit more about the issue you had as I think it sounds like ga:dateOfSession is what you need. What was the command you entered? What was the error message you received? |
@jdeboer I recieve the following error: When I use ga:dateOfSession instead of ga:date, I get the same error Later I found working solution for my case when I tried to use the same segment in RStudio, I got the same error. I do need this report in Rstudio. Basicly, this report is Churn Rate for my users. Please help me, guys. |
@omarcheek Have you tried clearing your API token? A failure to refresh would indicate something has gone awry. Unload/reload the package, and remove your current access token from the environment and, if stored as a file on your system, delete it. |
@mattpolicastro |
I'm unable to get any of them working, even in the Query Explorer. Set up the segment you are after in GA's dashboard, use |
it is strange, but I get the same error I will try to reistall RGA. are there any instructions to do it ? |
If you are using RStudio, then the Packages view allows you to uninstall local packages. However, this discussion seems entirely out of scope of RGA, and would be better on StackOverflow or similar. |
Make sure you are talking about the same package too, this is the github for rga() - RGA() is this one: https://cran.r-project.org/web/packages/RGA/index.html |
@MarkEdmondson1234 ah, thank you. I didn't realise there was a package going by all-caps as well. |
when I'm trying to execute this code:
ga.data= ga$getData(Gaid, batch = TRUE, walk = TRUE, start_date, end_date,
I have the following error:
error in fetching data: ga:date is not allowed in advanced segments.
Help me please I need to find out the number of screenviews made by new visitors, whose first session date was 2015-08-03
The text was updated successfully, but these errors were encountered: