TelemetryDeck / docs

Public Documentation for TelemetryDeck
https://telemetrydeck.com/docs
5 stars 8 forks source link

Add Tips and Tricks for Web Sites #23

Open winsmith opened 2 years ago

winsmith commented 2 years ago

If you add this snippet, you can extract things like URL and utm source:

 const params = new URLSearchParams(window.location.search);
  td.push([
    'signal',
    {
      route: window.location.pathname,
      source: params.get('utm_source'),
    },
  ]);

and then filter by pages like so

{ "url": "https://www.fline.dev/remafox-beta1/" }