foomo/pagespeed_exporter

Add campaign name and source for Analytics

Closed this issue · 4 comments

First of all, thanks for creating this!

Is it possible to implement the utm_campaign and utm_source parameters for Analytics, as described here:
https://developers.google.com/speed/docs/insights/v5/reference/pagespeedapi/runpagespeed ?

That way it is easier to separate the automated traffic from real traffic.

No probs! I'd love to, think i might have some time today/tomorrow!

How'd you imagine it should be passed in?

I guess either through a flag, like the rest, or an environment variable. Both work ok, but for sake of configuration consistency a flag would probably fit best.

@momania it's implemented, you can check out https://github.com/foomo/pagespeed_exporter/blob/master/example/prometheus/config.yml how to configure it via JSON target.

You can now configure pagespeed via prometheus or command line (docker), and filter for campaign / source / locale / strategy

Great, thanks! 👍