add support for outbound link click tracking #4 #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Breakdown: Referrer
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.