Tracking revenue in amplitude

Revenue in amplitude

I’m trying to better understand the flow my paid members go on prior to subscribing.

I’m using amplitude and trying to follow these these instructions but I’m getting stuck.

When a guest goes to sign up they hit the contribute button on the portal page, which goes to this stripe checkout page

What I’ve tried to do:

So far I have at the bottom of post.hbs

var postrevenue = new amplitude.Revenue().setProductId('qc book $1').setPrice(1);
amplitude.getInstance().logRevenueV2(postrevenue);

but I’m not sure if that’s correct?

The