request can be retrieved via crum

parent 53544a70
...@@ -20,7 +20,8 @@ def with_link_tracking(context, url): ...@@ -20,7 +20,8 @@ def with_link_tracking(context, url):
All URLs will be augmented to include UTM parameters so that clicks can be tracked. All URLs will be augmented to include UTM parameters so that clicks can be tracked.
Args: Args:
context (dict): The template context. Must include a "request" and "message". context (dict): The template context. Must include a "message". A request must be provided in this template
context or be retrievable using crum.
url (str): The url to rewrite. url (str): The url to rewrite.
Returns: Returns:
...@@ -75,7 +76,8 @@ def google_analytics_tracking_pixel(context): ...@@ -75,7 +76,8 @@ def google_analytics_tracking_pixel(context):
This tracking pixel will allow email open events to be tracked. This tracking pixel will allow email open events to be tracked.
Args: Args:
context (dict): The template context. Must include a "request" and "message". context (dict): The template context. Must include a "message". A request must be provided in this template
context or be retrievable using crum.
Returns: Returns:
str: A string containing an HTML image tag that implements the GA measurement protocol or an empty string if str: A string containing an HTML image tag that implements the GA measurement protocol or an empty string if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment