UTM Parameter Icon

UTM Parameter

5.0.6

July 6th, 2024

What's new

This release introduces a new Facade for the UtmParameter class, making it easier to utilize UTM parameters in your Statamic application without requiring middleware.

Using the UtmParameter Facade

Now you can leverage UTM parameters directly within your code using the Request object. Simply use the Facade and call the boot method.

#676E95;">// before inside the middleware
#82AAFF;">app#89DDFF;">(UtmParameter#89DDFF;">::class#89DDFF;">)->#82AAFF;">boot#89DDFF;">($reqeust#89DDFF;">)
 
#676E95;">// afterwards, can be used as facade
use Suarez#89DDFF;">\StatamicUtmParameters#89DDFF;">\Facades#89DDFF;">\UtmParameter#89DDFF;">;
 
UtmParameter#89DDFF;">::#82AAFF;">boot#89DDFF;">($request#89DDFF;">);

Full Changelog: https://github.com/toni-suarez/statamic-utm-parameter/compare/5.0.5...5.0.6

5.0.5

July 6th, 2024

What's new

Enhancements: Customize Session Key for UTM Parameters: You can now configure a custom session key to store UTM parameters using the new session_key configuration option. This is helpful if you're already using the default key (utm) for another purpose in your application. Improvements:

Added "Allowed UTM Parameters"-Config

Enhanced Test Coverage: We've added and improved tests to ensure the package functions reliably across various scenarios. This strengthens the overall stability and reduces the risk of regressions in future updates.

Full Changelog: https://github.com/toni-suarez/statamic-utm-parameter/compare/5.0.4...5.0.5

5.0.4

July 6th, 2024

  • N/A Changelog not available.

5.0.3

July 6th, 2024

What's New?

This update brings a range of improvements to the Statamic UTM-Parameters addon:

Enhanced Codebase The code has been refined for better performance and maintainability.

Clear Functionality A new clear method has been introduced to allow you to remove and reset UTM parameters from the session during your workflows.

Robust Testing The test suite has been updated to ensure continued functionality and compatibility with Statamic.

Improved Documentation The readme has been refreshed to provide clearer explanations and a more user-friendly experience.

5.0.2

July 6th, 2024

  • N/A Changelog not available.

5.0.1

July 6th, 2024

What's new?

  • Added the ability to check if a certain value is contained in the UTM parameter
  • Improved Tests
{{ #89DDFF;">if { utm:has type#89DDFF;">=#89DDFF;">"campaign#89DDFF;">" contains#89DDFF;">=#89DDFF;">"newsletter_weekly#89DDFF;">" } }}
Subscribe to our podcast
{{ #89DDFF;">/if }}

5.0.0

July 6th, 2024

Release Notes

Initial Release for Statamic UTM-Parameter. A helper to store and handle UTM parameters on Statamic websites.

{{ #89DDFF;">if { utm:has type#89DDFF;">=#89DDFF;">"source#89DDFF;">" value#89DDFF;">=#89DDFF;">"google#89DDFF;">" } }}
#89DDFF;"><span#89DDFF;">>{{ utm:get type#89DDFF;">=#89DDFF;">"medium#89DDFF;">" }}#89DDFF;"></span#89DDFF;">>
{{ #89DDFF;">/if }}