sendanor / project-sendanor.fi

Join us in shaping the future of sendanor.fi. Your contributions, feedback, and involvement are invaluable to our continuous improvement and success.
https://sendanor.fi
MIT License
0 stars 0 forks source link

TASK Add support for UTM parameters #159

Closed thejhh closed 6 months ago

thejhh commented 6 months ago

Goal

We need to find out which advertising campaigns are working by tracking our ads, but we want to do this in a way that respects our users' privacy and security.

We don't use tools like Facebook's Pixel or Google Analytics because we don't want to track our users or let others do it on our website. We also avoid using cookies for tracking.

Our solution should be simple: it should capture and save UTM parameters when a user visits our site through an ad. If that visit leads to an order, we want to send this info along with the order to our backend.

This approach helps us keep our website secure, especially since our customers use it to access sensitive data.

Requirements

Success Criteria

Subtasks

thejhh commented 6 months ago

You can enable this on Facebook ad by editing URL parameters like this: utm_source={{site_source_name}}&utm_medium=social&utm_campaign={{campaign.name}}&utm_content={{adset.name}}&utm_term={{ad.name}}

It's also possible to add these to the post ad, but not directly; the ad must be edited later from the ad manager.