Below is a list of all contextual variables that are accessible in Composer when using Run JS actions.
context.executionId context.experienceId context.experienceVersion context.trackingId context.splitTests context.currentMeterName context.activeMeters context.allMeters context.user context.region context.userSegments context.countryCode context.accessList
With the Run JS card, you are able to run Javascript from Composer that will be appended to your application or website. This means that all variables declared here are readable from the rest of your code.
Here is an example of how you can access data from your Pageview meter card:
console.log('Views so far:');
console.log(context.allMeters[0].totalViews);
console.log('Limit views:');
console.log(context.allMeters[0].views);
console.log('Views left:');
console.log(context.allMeters[0].viewsLeft);