persistent_visitor_parameters
Security covered
This module checks GET and HTTP Request parameters (like utm_source, utm_medium, HTTP_REFERER) from anonymous visitors, and saves those in a cookie for further processing.
When the visitor is going further on your website and is taking some actions like doing a purchase this information can be used for analytics. It makes initial paramaters persisistent for a session.
FEATURES
- Can read GET and HTTP Request parameters, and store them into cookie
- Cookie lifetime is configurable (current session, custom, forever)
- Respects browser DNT Setting (Do-Not-Track) (configurable)
- Other modules can easily read cookie data using integrated cookie_manager service
Version 2.x
- Supports multiple storage methods: Session, Private Temp Storage, Session, None (disabled)
- Better integrates Registration tracking submodule to log the (UTM / Referrer / Form) source of registered users.
HOW TO USE
- Configure module here: `admin/config/persistent-visitor-parameters`
- Read already saved cookies using
\Drupal::service('persistent_visitor_parameters.cookie_manager')->getCookie()inside your module, and process this data further as you need it