Hello, Can anyone please help me with UTM paramete...
# support
h
Hello, Can anyone please help me with UTM parameters? We want to set initial_utm_parameters for our amplitude destination as the segment does. but it feels like rudderstack has no concept of initial_utm_parameters . or is there a way?
r
Hi Iqra, I hope you're well mate. Cheers for getting in touch. I'm aware of UTM parameters and I know that RudderStack has the ability to capture these and send them to Amplitude via web device mode as outlined in the docs. It works similar to the way it works in Segment. I've never heard of initial_utm_parameters thou, do you happen to have a link to what these are? Either from Amplitude or Segment? If you're not seeing the UTM parameters being populated in Amplitude via RudderStack, have you ensured that you're using Amplitude in Device Mode?
h
@red-engineer-90710 amplitude has the concept of initial UTM parameters like, explain in below paragraph In Amplitude, once you set the includeUtm option to true, the JavaScript SDK will automatically pull UTM parameters from the referring URL and include them as user properties on all of the relevant events: _includeUtm: If true, finds the standard UTM parameters from either the URL or the browser cookie and sets them as user properties. This will set utm_source, utm_medium, utm_campaign, utm_term, and utm_content as well as initial_utm_source, initial_utm_medium, initial_utm_campaign, initial_utm_term, and initial_utm_content as user properties for the user._ UTM parameters are captured once per session by default and occurs when the user loads your site and the Amplitude SDK for the first time. You can disable the once per session restriction through the saveParamsReferrerOncePerSession configuration option. When the SDK detects that it should start a new session, it will pull the UTM parameters that are available at the time. Those UTM parameters will be set as user properties which will persist for all of the user's events going forward. However, initial UTM parameters are captured only once for each user via a setOnce operation. It is also mentioned here in the amplitude documentation options
r
Hi Iqra, thank you for sharing. Without having access to the Amplitude destination code it will not be possible to say for 100% which initial UTM properties are captured and which are not but based on the docs and the settings within the Amplitude destination in RudderStack, I can see that at least the initial referrer and user’s initial_gclid should be captured: Have you enabled these options within your Amplitude destination? If you don't see them available in the configuration screen of your Amplitude it's likely because you're not using the Amplitude destination in device mode.