Solved

Can I a custom event with URL starting with?

  • 13 June 2022
  • 1 reply
  • 517 views

Hello there,

 

I am trying to track visits to my home page “mydomain.io” that come form a paid campaign. The issue I am having is all URL have a different gclid (https://mydomain.io/?gclid=Cj0KCQjwwJuVBhCAARIsAOPwGASRKmULeCF9fYKDzIwJhk4ECnax3xpGo_sHsXl7tiyV2HCrN-qQgXEaAn6REALw_wcB -→ for instance), as all are different Amplitude considers it as new page for every gclid. Is there anyway I can unify or create a custom event with page starts with https://mydomain.io/ so it can include all generated gclid?

Thanks

icon

Best answer by Saish Redkar 13 June 2022, 18:01

View original

1 reply

Userlevel 7
Badge +10

Hey @Isabel 

Yes. Amplitude allows to create a custom event based on one or more events. You can also condition an added event with an event property or user property .

Just use the page visit event in the custom event creation modal and use the filter on your url path ( e.g contains mydomain.co). Read more here on how to create custom events.

I would also suggest fixing your instrumentation so that you are not getting new page view events on every new gclid and instead just send the gclid as an event property on the “Viewed Home Page” event.

Let me know if I have interpreted your use case correctly.

 

Reply