Thanks for reaching out. If you would like to call setCustomerID method without DTM in that case you need to work with VisitorAPI.js and need to embed below code:
with in your VisitorAPI.js.
Refer below documents to Implement the Marketing Cloud ID Service for Analytics:
Hope this helps, let me know if you have any further query.
- Ankit Bhatt
Many thanks Ankit
Just a couple of questions to clarify:
1 I need to insert this code in the very end of the file, after the Visitor.getInstance function? Then we can do that easily.
2 In regards getCustomerId method - do we need use it anywhere?
In addition to this - when I debug and test how this customer ID parameter would look like in the image request?