|
||
This topic describes the possible options that may be used to ensure that the system logs specific events as conversions. When assigning a conversion through the user interface, two separate fields are provided.
The first is a standard conversion selector. You can either enter the code name of a conversion into the text box or click the Select button to choose from a list of conversions defined for the current site. If you enter a name that does not match any conversion in the system, a conversion with this name will automatically be added. The New and Edit buttons allow you to create a new conversion or modify the properties of the selected one directly from the given part of the user interface.
The second field is optional and provides a way to set a number that will be recorded along with the conversion when the tracked action is performed. This may be used to indicate the relative importance of the conversion, the profit generated by a single conversion hit or similar. The values are cumulative, i.e. when a conversion hit is logged, the specified value will be added to the total sum previously recorded for the conversion. You may insert a Macro expression into this field to dynamically retrieve a value from the current site context. For examples of conversion value macros, please see the sections below dedicated to individual types of actions.
Many of the default Kentico CMS Web parts and Widgets that allow users to perform important actions come with built‑in support for conversion tracking. To configure a specific web part or widget instance to log actions as conversions, open its properties dialog and enter the appropriate values into the Track conversion name and Conversion value properties.
Below you can find a list of all types of actions that can be tracked as conversions through web parts:
Action |
Web part(s) |
User registration |
In this case, the conversion will be logged when a visitor successfully completes their registration using the given web part. There are multiple web parts that allow users to register on the website:
•Facebook Connect logon and Facebook Connect required data •LinkedIn logon and LinkedIn required data •Windows LiveID and LiveID required data •OpenID logon and OpenID required data
|
Newsletter subscription |
Newsletter subscriptions may be tracked as conversions through the Newsletter subscription web part. This can also be done for the widget based on this web part. |
Shopping cart actions |
The Shopping cart web part can be used to track three types of events:
•Registration - occurs when a customer registers on the website through the shopping cart. •Order - logged when a customer successfully completes an order through the shopping cart. •Add to shopping cart - occurs when a user adds a product to the shopping cart.
You can assign a different conversion and value to each of these actions through the appropriate conversion name and conversion value properties.
The conversion value properties support macro expressions, for example:
Order conversion value: {%EcommerceContext.CurrentShoppingCart.TotalPrice%}
This macro is resolved into the total price of all items contained in the order, including tax and shipping. With this configuration, each Order conversion will automatically store the price of the given order as its value.
Add to shopping cart conversion value: {%ShoppingCartItemInfo.UnitTotalPrice%}
With this macro as the conversion value, the Add to shopping cart conversion will log the price (including tax) of the specific product that was added to the shopping cart. |
Filling in an on‑line form |
A conversion can be logged when a user submits a form displayed by the On‑line form web part. |
Voting in a poll |
The Poll web part may be used to log a conversion whenever a user votes in the displayed poll. |
You can also use conversions to keep track of the amount of hits received by individual pages. To configure this behaviour for a page, go to CMS Desk -> Content -> Edit, select the document representing the given page from the content tree and switch to its Analytics -> Settings tab. To assign a conversion and associated value, fill in the Track conversion name and Conversion value fields as described above.
The specified conversion will be logged every time the given page is opened by the website's users. You can find an example of such a page on the sample Corporate Site under the Examples sections as shown in the image above.
The Shopping cart web part allows you to track entire orders, but in some cases you may wish to log a separate conversion hit every time a product of a specific type is purchased. This can be done by navigating to the product list in CMS Desk -> E-commerce -> Products and editing () the particular product (or by selecting a product document in the content tree and editing it on the Product -> General tab).
Here you can assign a conversion through the Conversion name property at the bottom of the product's editing page.
The Conversion value field can be used to enter an appropriate value that will be recorded for each conversion hit. You may enter a macro expression here, for example: {%ShoppingCartItemInfo.UnitTotalPrice%}. This macro allows the conversion to log the price of the given product as its value. The advantage of a macro is that it retrieves the price dynamically, including tax and any potential discounts applied by the given customer.
Please note that these properties are not available for global products, since each site has its own separate set of conversions.
You can also use the same approach to configure different conversion settings for individual product options (via E-commerce -> Product options -> edit Category -> Options).