Skip to content
Knowledge Base
Search in

Recipe Analytics

On the WP Recipe Maker > Settings > Analytics page you have the option to enable Local Tracking of Recipe Analytics:

What this does is track different interactions that your visitors can have with recipes: clicking the jump to recipe button, printing a recipe, rating a recipe, adjusting servings or unit system, …

Once enabled, you’ll find some charts displaying that data on the WP Recipe Maker > Dashboard page:

The raw data for this can be viewed on the WP Recipe Maker > Manage > Analytics page as well.

To learn more about interactions and find out which of your recipes are most interacted with, check out the WP Recipe Maker > Reports page. Once you generate the interactions report you’ll get an overview of the interactions per recipe:

Starting with WP Recipe Maker 10.8.0, you can display an interaction count directly in a recipe card using the Analytics block:

  1. Go to WP Recipe Maker > Template Editor and edit the recipe template you want to change.
  2. Click on “Add Blocks” and add the “Analytics” block where you want the count to appear.
  3. Adjust the block options and save the template.

The Template Editor uses an example count in its preview. For the block to output a count on the live site, Local Tracking of Recipe Analytics must be enabled on the WP Recipe Maker > Settings > Analytics page.

  • Interaction Type: Choose the interaction to count, such as Print, Adjust Servings, User Rating or Jump to Recipe.
  • Metric: “Total Interactions” counts every recorded interaction of the selected type. “Unique Visitor Interactions” counts each tracked visitor once within the selected period.
  • Days: Set the number of days to count, including today. Use 0 to count all data still stored according to your Analytics retention setting.
  • Text: Customize the output and use %count% where the formatted count should appear. For example, %count% visitors printed this recipe.
  • Hide Zero: Enable this to output nothing when the count is zero.
  • Text Style: Change the visual style of the text, such as its weight, size, casing or emphasis.
  • HTML Tag: Choose the HTML element that wraps the output, from span and div to the heading tags h1 through h6.

The Analytics block uses the [wprm-recipe-analytics] shortcode. Like other Recipe Block shortcodes, it can also be used outside the Template Editor. The easiest way to build it with the attributes you need is the Shortcode Generator on the WP Recipe Maker > Template Editor page.

For example:

[wprm-recipe-analytics type="print" metric="unique" days="30" text="%count% visitors printed this recipe" hide_zero="1"]

This displays the number of unique tracked visitors who printed the recipe during the last 30 days and hides the output when that count is zero.

Recipe Analytics can therefore be viewed in the dashboard charts and interactions report, inspected as raw data, or displayed directly in a recipe template with the Analytics block.

Alternatively, you could also enable the Google Analytics 4 Event Tracking to get the same interactions as events in Google Analytics.