Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for outbound link click tracking #4 #8

Merged
merged 1 commit into from
Dec 12, 2020
Merged

Conversation

mehul0810
Copy link
Contributor

This PR resolves #4

@metmarkosaric I have implemented this functionality using a custom snippet (minified) based on code here: https://github.com/plausible/analytics/blob/1504dd5412e2aad006c7ec669c342c649b1da186/tracker/src/plausible.js#L59-L76

I have tested this and is working as expected. But, I want you to take a look on this PR as well and merge the PR if it looks good to you.

Visuals

Breakdown: URL
image

Breakdown: Referrer
image

I think if we agree to go with custom snippet for Outbound links then we can add it as a default goal for all new sites added to plausible.io.

@metmarkosaric metmarkosaric merged commit cb12665 into develop Dec 12, 2020
@metmarkosaric metmarkosaric deleted the issue/4 branch December 12, 2020 15:26
@metmarkosaric
Copy link
Collaborator

nice, thanks @mehul0810! i like that! we still have many customers who are not using WordPress so we have to consider them too on plausible.io. i'll let you know if the default goals can be set when i speak to Uku. but even a quick visit to plausible.io to set up these two is not too bad as you've integrated the biggest part of the work into the plugin already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for outbound link click tracking
2 participants