Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. setGoogleAnalyticsMerchantUUID(merchantId);
  2.  
  3. //merchantID is being passed into featureFlags, not merchantUUID
  4. export const setGoogleAnalyticsMerchantUUID = (featureFlags, merchantUUID) => {
  5. if (window.ga) {
  6. window.ga('set', 'dimension1', merchantUUID);
  7. } else {
  8. Raven.captureMessage(
  9. '[warning] Google Analytics was not loaded!', {
  10. level: 'warning'
  11. }
  12. );
  13. }
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement