UTM parameters not set for my website with Firebase dynamic links

旧时模样 提交于 2021-01-29 14:11:03

问题


I have a need to shorten my website url and I choose Firebase Dynamic Links (https://firebase.google.com/docs/dynamic-links) for that. I also added UTM parameters while creating the link.

When clicked on the link, the user is redirected to the desired website, but these parameters are not getting passed to it. Hence by GA for the website doesn't track it.

Am I doing something wrong? Or Is Dynamic Links a bad choice for my use case?


回答1:


UTM parameters that you choose in UI are parameters for mobile tracking. If you want to pass UTM parameters to your "fallback" website, you need to add them to the fallback address itself.

So to be covered in all cases you'd need to add UTM parameters in UI configuration (or as normal UTM parameters) and inside fallback link, for example:

Let's say those are your UTM params: utm_campaign=spring_sale&utm_medium=cpc&utm_source=google

Your current link:

https://sample.page.link/?link=http://example.com?utm_campaign%3Drandom&apn=com.demo.firebase&utm_campaign=spring_sale&utm_medium=cpc&utm_source=google

Your new link with UTM embedded in web link (https://example.com?utm_campaign=spring_sale&utm_medium=cpc&utm_source=google):

https://sample.page.link/?link=https://example.com?utm_campaign%3Dspring_sale%26utm_medium%3Dcpc%26utm_source%3Dgoogle&apn=com.demo.firebase&utm_campaign=spring_sale&utm_medium=cpc&utm_source=google



来源:https://stackoverflow.com/questions/62208892/utm-parameters-not-set-for-my-website-with-firebase-dynamic-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!