12.9. Parameter Example: UTM Generator
A practical use case for text parameters is creating a mini-tool like a UTM link generator. This can be useful for marketing teams who want to generate UTM links for their campaigns.
Learning Objectives
- Understand the use case and benefits of creating a UTM link generator tool.
- Learn how to set up text-based parameters for UTM source, medium, and campaign.
- Create a custom UTM link based on user inputs.
- Differentiate between labels and values for text-based parameters.
- Apply real-life examples to demonstrate the practical application of the UTM generator.
UTM Generator Setup
Suppose we have a base link, such as datastudio.com
, and we want to get the values for the UTM parameters from the user. For example, they might input a UTM source like email
and a UTM medium like newsletter
.
Since we're familiar with the business and know there are only a few campaigns they run, we can create a text-based parameter with a list of allowed values, like product A
and product B
. Users can then select the value using a dropdown menu rather than an input box.
Creating the UTM Link
The UTM link will be constructed by appending the UTM source, UTM medium, and UTM campaign values to the base link. For instance, it might look like datastudio.com?utm_source=email&utm_medium=newsletter&utm_campaign=product-a
.
Let's examine the UTM parameters:
- UTM source: Text with any value.
- UTM medium: Text with any value.
- UTM campaign: Text with a limited set of allowed values (e.g.,
product-a
andproduct-b
).
The label displayed in the dropdown menu represents the user-friendly product name, while the value used in calculations can be something more technical, like an SKU. This way, the marketing manager sees familiar product names, but the UTM link includes the SKU.
For example, the user interface displays "Product A" and "Product B," but when the user selects "Product B," the UTM campaign shows the SKU for that product. The generated link can then be clicked on to navigate directly to the UTM link.
By providing this UTM generator tool, you can make it easier for your marketing team to create custom UTM links for their campaigns, without having to deal with the technical details themselves.
β 12.2. Use Cases for Parameters
β 12.3. Properties of Parameters
β 12.4. Parameters: From Creation to Visualization
β 12.5. Parameters: Range of Values
β 12.6. Parameters on Charts
β 12.8. Parameter Example: Google Maps Link
β 12.9. Parameter Example: UTM Generator
β 12.10. Parameter Example: Dynamic Dimension
β 12.11. Parameter Example: Dynamic Metric
β 12.12. Parameter Example: Dynamic Comparison
β 12.13. Parameter Example: Dynamic Filter Controls
β 12.14. Parameter Example: Projection & Custom Calculators
β 12.15. App View
β 12.16. Parameters in Dynamic SQL for BigQuery
π© Receive my weekly Looker Studio tips
π₯Β Subscribe to my YouTube channel
π Connect with me on LinkedIn