Custom Dimension Tracking via JavaScript API

I’m trying to record custom dimension data via the Javascript tracking API
I’m making a call like

_paq.push([‘setCustomDimension’, 7, length]);

How do I determine if I’m providing a custom dimension for a visit or an action? Where in the Piwik database schema is the custom dimension data be stored in (log_visit; for visit scoped dimensions, log_link_visit_action; for action scoped dimensions)?

Is the data be stored immediately the following the receipt of the network Get request?



Remember about quotes.

Please clarify what you mean about ‘the quotes’

It should be:

_paq.push(['setCustomDimension', 7, 'length']);

But I’m sure you know that.