allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.5k stars 1.11k forks source link

Add new panel for UTM Parameters #666

Open fredgi opened 7 years ago

fredgi commented 7 years ago

Hi all,

Is there a way to configure goaccess to parse UTM (advertising campaign) ? For example by using a prefix or query parameter name to be parsed instead of default "query=" ?

You can find below an nginx log generated by a visitor from Bing.com paid keyword, at referer position :

https://myserver.com/?utm_source=bing&utm_medium=cpc&utm_campaign=C3%20-%20clic&utm_term=MY%20KEYWORD&utm_content=g2

Google UTM should be very near, have no example to provide.

Thanks, Fred

allinurl commented 7 years ago

There's no way right now to track this data. However, I think it would be great if goaccess could have a panel (or multiple perhaps?) to display utm data. If implemented, how should these metrics be shown? Thanks.

fredgi commented 7 years ago

From my point :

In such case maybe a panel like 'Visitor Hostnames and IPs' with an expendable data 'utm_campaign' could show distinct 'utm_term'.

allinurl commented 7 years ago

I'm curious if Google/Twitter, etc use the same parameters. It looks like it should be straightforward to add a new panel dedicated to display to utm_* data, please keep this opened so I can look into it.

Lusitaniae commented 7 years ago

I remember seeing utm data quite often back in the days I used to spend more time on Analytics, and from what I see it continues to be common ground.

Adwords seems to have an auto tagging feature to add utm parameters automatically. https://support.google.com/analytics/answer/1033867?hl=en

Its likewise fairly easy to track these parameters on Analytics https://blog.kissmetrics.com/how-to-use-utm-parameters/

Shirkit commented 6 years ago

@allinurl do you have nay update on this? I'm trying to move out of Analytics and this would help me solve a big part of my current requirements.

Anyways, thanks for this tool, I've been using it already for a while 😄

harsxv commented 2 years ago

Upvote for this UTM feature👍🏽

new panel dedicated to display to utm_* data

Shirkit commented 2 years ago

I'm still looking forward to see this =]

MrBryan commented 3 months ago

installed this program hoping to parse utm and ended up here... agreeing with the feature request!

pushing-boulders commented 1 month ago

Adding another up vote for seeing UTM. I don't know enough C to contribute on this front.

As a work around, you can parse out your logs before processing in goaccess. For instance, here is how I look for the utm_campaign=XYZ URLs:

zcat -f website_log-Oct-2024.gz | grep "utm_campaign=XYZ" | goaccess -a -o report-xyz.html --log-format=COMBINED