
Odoo 14 Development Cookbook
By :

In any business or service, it is really important to be familiar with the Return on Investment (ROI). The ROI is used to evaluate the effectiveness of an investment. Investments in ads can be tracked through UTM codes. A UTM code is a small string that you can add to a URL. This UTM code will help you to track campaigns, sources, and media.
For this recipe, we will be using the my_library
module from the previous recipe. Odoo has built-in support for UTMs. With our library application, we don't have any practical case where UTMs can be used. However, in this recipe, we will add a UTM in the issues generated by /books/submit_issues
in my_library
.
Follow these steps to link UTMs in a book issue generated from our web page to the /books/submit_issues
URL:
utm
module in the depends
section of manifest.py
, as follows:'depends': ['base', 'website', 'utm'],