Good morning! I'm having trouble with the Google ...
# support
h
Good morning! I'm having trouble with the Google Analytics 4 integration; I'm using the JavaScript SDK. All the information arrives perfectly at Google Analytics, but the URL parameterization information, such as the utm source, is not getting through to analytics and always appears as direct. How can I solve this? I'm sending a field in the page view event called "search" to send only the parameterizations, for example: search: "?utm_source=instagram=utm_campaign=test"
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
I know that you can solve this by moving to device mode.
If you wish to continue in cloud mode, you check if the initial referrer property is being captured correctly. I was recently pointed to this property that should contain the utm parameters. If this property is being correctly populated we could use a transformation to populate this instead of the referrer. I am not sure of if this would work but it could be tried. The Device mode would surely work.
h
@shy-kite-21035 I'm already using device mode, but in my Google Analytics 4 it stays as (direct) and when I use Google's assistant tag it doesn't show the params arriving through the event
@shy-kite-21035
Copy code
I'm sending it to the URL

utm_source
utm_campaign
m
Hi Coelho, using device-mode is the same as using Gtag. Hence the UTM parameters should be captured correctly. Are you sending page calls or only track calls? What SDK version are you using?