https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
c

clever-dog-90390

01/17/2023, 3:51 AM
Hi Actually I would like to pull data from Google Analytics (Universal) I added my Google Analytics account, but when testing the data it is throwing error Like viewId is invalid Can you please help me to get rid from this issue
f

fresh-football-47124

01/17/2023, 7:07 AM
What did you set your view Id to in GrowthBook?
c

clever-dog-90390

01/17/2023, 7:08 AM
I am passing UA id
I mean Google Universal Analytics id
f

fresh-football-47124

01/17/2023, 7:09 AM
can you double check it’s correct in GA and GrowthBook?
c

clever-dog-90390

01/17/2023, 7:09 AM
ok
when I was connecting with GA I used
this one
so what I have to do
again re-configure the GA account
f

fresh-football-47124

01/17/2023, 7:14 AM
is it the correct id?
c

clever-dog-90390

01/17/2023, 7:16 AM
the screen shot which I sent is UA id
and view id is
f

fresh-football-47124

01/17/2023, 7:16 AM
you should be able to change it from the data source page
c

clever-dog-90390

01/17/2023, 7:16 AM
ok
now is it correct
hi
now getting this error
f

fresh-football-47124

01/17/2023, 9:03 AM
what does your implementation code look like?
c

clever-dog-90390

01/17/2023, 9:05 AM
it is auto generated
like
Copy code
if (growthbook.isOn("ga_view")) {
2  console.log("Feature is enabled!")
3} else {
4  console.log("fallback")
5}
f

fresh-football-47124

01/17/2023, 9:05 AM
What is your trackingCallback method?
c

clever-dog-90390

01/17/2023, 9:07 AM
I followed the guide
but I did not know where I can implement "Implement the the GrowthBook code"
f

fresh-football-47124

01/17/2023, 9:09 AM
what kind of website are you using it on?
c

clever-dog-90390

01/17/2023, 9:09 AM
it is kind of watch movies
f

fresh-football-47124

01/17/2023, 9:10 AM
I mean, what technology is it running on?
c

clever-dog-90390

01/17/2023, 9:10 AM
React, node js
but for GA using JS
f

fresh-football-47124

01/17/2023, 9:12 AM
okay, so you can follow the react/node examples
c

clever-dog-90390

01/17/2023, 9:12 AM
ok
f

fresh-football-47124

01/17/2023, 9:13 AM
when you implement the trackingCallback, use the example code from the GA guide
c

clever-dog-90390

01/17/2023, 9:14 AM
I have to create fresh SDK
35 Views