back to phpList.org

How to automatically tag all links in phplist?


#1

Hi there,
I saw that it is possible to automatically track all links with Google Analytics parameters.
But is it possible to customize this and edit the utm parameters to change them by something else?
The typical use case is the following one. I would like to track extra parameters to use them in an analytics tool and those parameters will come from the attributes defined in phplist.
Thank you for your answer.


#2

Which analytics tool? Others have suggested Matomo. Currently it’s not possible to customise the tagging using the interface. You’d need to edit the code responsible for this. If you do, please make a pull request on GitHub so others can benefit.


#3

Wow you found the workaround using attributes - nice work!


#4

I’m not sure why the campaign name would be wrong in your video example. If it’s encoded correctly for Matomo in the url you built, then it should work.


#5

Thank you for your help Sam, I wrote an issue about it here: https://github.com/phpList/phplist3/issues/556.
My video is located here: https://peertube.floss-marketing-school.com/videos/watch/5b4d7f22-abf4-471a-9976-6e533a7fdbd5
One issue I am seeing with my technique is that each link will need to be tagged manually, whereas the idea would be for all links to be tracked.
Matomo supports automatically the utm parameter, but I am not sure how phplist is taking the value of the utm parameters.
In all cases, thank you so much for making phplist available. Great product.