To ensure this extension functions correctly, please make the following changes to Varnish: remove the utm_ rule from your default Varnish file located at (/etc/varnish/default.vcl).
Default Varnish Code,
Expand
if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=") { set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?", ""); set req.url = regsub(req.url, "[?|&]+$", "");
}
Modified Varnish Code,
Expand
if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|_bta_[a-z]+)=") { set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?", ""); set req.url = regsub(req.url, "[?|&]+$", ""); }
Section
Backend Configuration (Admin side)
Panel
Enable: Option to disable/enable the Digital Marketing Campaign Tracker extension feature.
Cookie Consent Based Tracking: Select "Yes" if you would like to enable tracking cookies.
Cookie Life in Days: Set a positive integer value to validate the lifespan of the cookie in the campaign tracker extension.
Campaign Track For: Select the pages from the list where you would like to implement tracking for the campaign.
Store View: Select the store view from the list where you would like the campaign tracker to be implemented.
Panel
Enable Email : Option to disable/enable the email feature for the module.
Email From: Select an option from the drop-down list for the email sender.
Email To :Set the email address of the administrator who will send emails to customers.
Email Template: Option toselect the suitable templates for the email template from the drop down list.
Panel
Enable Clear Logs:Select "Yes" to clear logs
Click Here: Click the "Clear Logs" button to remove the logs.
Panel
Default Chart: Select the default chart option from the drop-down list for chart representation.
Default Chart Period: select the default chart period option from the drop-down list for chart validation.
Is Chart Multi Color: Choose whether the chart color should be displayed in multiple colors or not.
Default Chart Color: Select the color for the default chart for chart representation..