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.
// before inside the middleware
app(UtmParameter::class)->boot($reqeust)
// afterwards, can be used as facade
use Suarez\StatamicUtmParameters\Facades\UtmParameter;
UtmParameter::boot($request);
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.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.1
July 6th, 2024
What's new?
- Added the ability to check if a certain value is contained in the UTM parameter
- Improved Tests
{{ if { utm:has type="campaign" contains="newsletter_weekly" } }}
Subscribe to our podcast
{{ /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.
{{ if { utm:has type="source" value="google" } }}
<span>{{ utm:get type="medium" }}</span>
{{ /if }}