On the Thanks page of the ecommerce transaction, I used the Google Analytics tool to register the transaction. As part of this, I used the "set" function to add some tracking data:
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
'id': '123456',
'affiliation': '',
'revenue': '9.99',
'shipping': '1.11',
'tax': '0.00'
});
ga('set', {
'dimension5': 'Mr',
'dimension6': '1968',
'dimension7': 'G4'
});
ga('ecommerce:send');
Everything is working fine. However, I do have a search box in the sidebar of all pages, which I also track using Google Analytics. This usually behaves fine, but if the user has just completed the transaction and uses the search box on this page, user dimensions are included in the details of this event.
? API , , Google, . , , , .