123
. You can then assign a currency to it from your site settings in Fathom (on the “Events” tab within your site settings).
To send an event with a value (in this case, a $10 widget), here’s the code:
widget purchase
with an Event name of your choosing. And you’d replace 1000 (which is $10.00) with the value of the event completion.
Say you have e-commerce shopify that has variables for things like product names and product pricing. In that scenario, you can send dynamic values for your event name and values to Fathom Analytics. Here’s an example of code for Shopify (but it can be adapted to any e-commerce software):