angulartics2 10.1.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -8
  3. package/angular-router.d.ts +3 -0
  4. package/angulartics2-core.d.ts +3 -0
  5. package/angulartics2.d.ts +1 -0
  6. package/angulartics2.module.d.ts +5 -0
  7. package/angulartics2On.d.ts +6 -0
  8. package/esm2020/angular-router.mjs +33 -0
  9. package/esm2020/angulartics2-config.mjs +19 -0
  10. package/esm2020/angulartics2-core.mjs +93 -0
  11. package/esm2020/angulartics2-interfaces.mjs +2 -0
  12. package/esm2020/angulartics2-token.mjs +3 -0
  13. package/esm2020/angulartics2.mjs +5 -0
  14. package/{esm2015/angulartics2.module.js → esm2020/angulartics2.module.mjs} +12 -7
  15. package/esm2020/angulartics2On.mjs +66 -0
  16. package/esm2020/providers/adobeanalytics/adobeanalytics.mjs +98 -0
  17. package/esm2020/providers/amplitude/amplitude.mjs +68 -0
  18. package/esm2020/providers/appinsights/appinsights.mjs +118 -0
  19. package/esm2020/providers/baidu/baidu.mjs +81 -0
  20. package/{clicky/esm2015/clicky.interfaces.js → esm2020/providers/clicky/clicky.interfaces.mjs} +1 -0
  21. package/esm2020/providers/clicky/clicky.mjs +64 -0
  22. package/esm2020/providers/facebook/facebook.mjs +45 -0
  23. package/esm2020/providers/ga/ga.mjs +219 -0
  24. package/{ga-enhanced-ecom/esm2015/ga-enhanced-ecom-options.js → esm2020/providers/ga-enhanced-ecom/ga-enhanced-ecom-options.mjs} +1 -0
  25. package/esm2020/providers/ga-enhanced-ecom/ga-enhanced-ecom.mjs +32 -0
  26. package/esm2020/providers/gosquared/gosquared.mjs +55 -0
  27. package/{gst/esm2015/gst-interfaces.js → esm2020/providers/gst/gst-interfaces.mjs} +1 -0
  28. package/esm2020/providers/gst/gst.mjs +197 -0
  29. package/esm2020/providers/gtm/gtm.mjs +114 -0
  30. package/esm2020/providers/hubspot/hubspot.mjs +40 -0
  31. package/esm2020/providers/ibm-digital-analytics/ibm-digital-analytics.mjs +125 -0
  32. package/esm2020/providers/intercom/intercom.mjs +60 -0
  33. package/esm2020/providers/kissmetrics/kissmetrics.mjs +40 -0
  34. package/esm2020/providers/launch/launch.mjs +59 -0
  35. package/esm2020/providers/matomo/matomo.mjs +303 -0
  36. package/esm2020/providers/mixpanel/mixpanel.mjs +109 -0
  37. package/esm2020/providers/pyze/pyze.mjs +65 -0
  38. package/esm2020/providers/segment/segment.mjs +100 -0
  39. package/esm2020/providers/splunk/splunk.mjs +46 -0
  40. package/esm2020/providers/woopra/woopra.mjs +61 -0
  41. package/esm2020/public_api.mjs +32 -0
  42. package/esm2020/routerless.mjs +10 -0
  43. package/esm2020/routerless.module.mjs +28 -0
  44. package/fesm2015/angulartics2.mjs +2248 -0
  45. package/fesm2015/angulartics2.mjs.map +1 -0
  46. package/fesm2020/angulartics2.mjs +2294 -0
  47. package/fesm2020/angulartics2.mjs.map +1 -0
  48. package/package.json +26 -13
  49. package/{adobeanalytics → providers/adobeanalytics}/README.md +1 -1
  50. package/{adobeanalytics → providers/adobeanalytics}/adobeanalytics.d.ts +4 -1
  51. package/{amplitude → providers/amplitude}/README.md +1 -1
  52. package/{amplitude → providers/amplitude}/amplitude.d.ts +4 -1
  53. package/{appinsights → providers/appinsights}/README.md +1 -1
  54. package/{appinsights → providers/appinsights}/appinsights.d.ts +5 -1
  55. package/{baidu → providers/baidu}/README.md +1 -1
  56. package/{baidu → providers/baidu}/baidu.d.ts +4 -1
  57. package/{clicky → providers/clicky}/README.md +1 -1
  58. package/{clicky → providers/clicky}/clicky.d.ts +4 -1
  59. package/{clicky → providers/clicky}/clicky.interfaces.d.ts +0 -0
  60. package/{facebook → providers/facebook}/README.md +1 -1
  61. package/{facebook → providers/facebook}/facebook.d.ts +4 -1
  62. package/{ga → providers/ga}/README.md +1 -1
  63. package/{ga → providers/ga}/ga.d.ts +6 -1
  64. package/{ga-enhanced-ecom → providers/ga-enhanced-ecom}/README.md +1 -1
  65. package/{ga-enhanced-ecom → providers/ga-enhanced-ecom}/ga-enhanced-ecom-options.d.ts +0 -0
  66. package/{ga-enhanced-ecom → providers/ga-enhanced-ecom}/ga-enhanced-ecom.d.ts +3 -0
  67. package/{gosquared → providers/gosquared}/README.md +1 -1
  68. package/{gosquared → providers/gosquared}/gosquared.d.ts +4 -1
  69. package/{gst → providers/gst}/README.md +2 -2
  70. package/{gst → providers/gst}/gst-interfaces.d.ts +0 -0
  71. package/{gst → providers/gst}/gst.d.ts +5 -1
  72. package/{gtm → providers/gtm}/README.md +2 -2
  73. package/{gtm → providers/gtm}/gtm.d.ts +5 -1
  74. package/{hubspot → providers/hubspot}/README.md +1 -1
  75. package/{hubspot → providers/hubspot}/hubspot.d.ts +4 -1
  76. package/{ibm-digital-analytics → providers/ibm-digital-analytics}/README.md +2 -2
  77. package/{ibm-digital-analytics → providers/ibm-digital-analytics}/ibm-digital-analytics.d.ts +4 -1
  78. package/{intercom → providers/intercom}/README.md +1 -1
  79. package/{intercom → providers/intercom}/intercom.d.ts +4 -1
  80. package/{kissmetrics → providers/kissmetrics}/README.md +1 -1
  81. package/{kissmetrics → providers/kissmetrics}/kissmetrics.d.ts +4 -1
  82. package/{launch → providers/launch}/README.md +3 -3
  83. package/{launch → providers/launch}/launch.d.ts +4 -1
  84. package/{matomo → providers/matomo}/README.md +3 -3
  85. package/{matomo → providers/matomo}/matomo.d.ts +9 -6
  86. package/{mixpanel → providers/mixpanel}/README.md +2 -2
  87. package/{mixpanel → providers/mixpanel}/mixpanel.d.ts +4 -1
  88. package/{pyze → providers/pyze}/README.md +1 -1
  89. package/providers/pyze/pyze.d.ts +13 -0
  90. package/{segment → providers/segment}/README.md +3 -3
  91. package/{segment → providers/segment}/segment.d.ts +4 -1
  92. package/{splunk → providers/splunk}/README.md +2 -2
  93. package/providers/splunk/splunk.d.ts +11 -0
  94. package/{woopra → providers/woopra}/README.md +1 -1
  95. package/{woopra → providers/woopra}/woopra.d.ts +4 -1
  96. package/public_api.d.ts +23 -0
  97. package/routerless.module.d.ts +10 -0
  98. package/adobeanalytics/angulartics2-adobeanalytics.d.ts +0 -4
  99. package/adobeanalytics/angulartics2-adobeanalytics.metadata.json +0 -1
  100. package/adobeanalytics/bundles/angulartics2-adobeanalytics.umd.js +0 -116
  101. package/adobeanalytics/bundles/angulartics2-adobeanalytics.umd.js.map +0 -1
  102. package/adobeanalytics/bundles/angulartics2-adobeanalytics.umd.min.js +0 -2
  103. package/adobeanalytics/bundles/angulartics2-adobeanalytics.umd.min.js.map +0 -1
  104. package/adobeanalytics/esm2015/adobeanalytics.js +0 -103
  105. package/adobeanalytics/esm2015/angulartics2-adobeanalytics.js +0 -5
  106. package/adobeanalytics/fesm2015/angulartics2-adobeanalytics.js +0 -107
  107. package/adobeanalytics/fesm2015/angulartics2-adobeanalytics.js.map +0 -1
  108. package/adobeanalytics/package.json +0 -20
  109. package/amplitude/angulartics2-amplitude.d.ts +0 -4
  110. package/amplitude/angulartics2-amplitude.metadata.json +0 -1
  111. package/amplitude/bundles/angulartics2-amplitude.umd.js +0 -88
  112. package/amplitude/bundles/angulartics2-amplitude.umd.js.map +0 -1
  113. package/amplitude/bundles/angulartics2-amplitude.umd.min.js +0 -2
  114. package/amplitude/bundles/angulartics2-amplitude.umd.min.js.map +0 -1
  115. package/amplitude/esm2015/amplitude.js +0 -73
  116. package/amplitude/esm2015/angulartics2-amplitude.js +0 -5
  117. package/amplitude/fesm2015/angulartics2-amplitude.js +0 -78
  118. package/amplitude/fesm2015/angulartics2-amplitude.js.map +0 -1
  119. package/amplitude/package.json +0 -20
  120. package/angulartics2.metadata.json +0 -1
  121. package/appinsights/angulartics2-appinsights.d.ts +0 -4
  122. package/appinsights/angulartics2-appinsights.metadata.json +0 -1
  123. package/appinsights/bundles/angulartics2-appinsights.umd.js +0 -134
  124. package/appinsights/bundles/angulartics2-appinsights.umd.js.map +0 -1
  125. package/appinsights/bundles/angulartics2-appinsights.umd.min.js +0 -2
  126. package/appinsights/bundles/angulartics2-appinsights.umd.min.js.map +0 -1
  127. package/appinsights/esm2015/angulartics2-appinsights.js +0 -5
  128. package/appinsights/esm2015/appinsights.js +0 -122
  129. package/appinsights/fesm2015/angulartics2-appinsights.js +0 -125
  130. package/appinsights/fesm2015/angulartics2-appinsights.js.map +0 -1
  131. package/appinsights/package.json +0 -20
  132. package/baidu/angulartics2-baidu.d.ts +0 -4
  133. package/baidu/angulartics2-baidu.metadata.json +0 -1
  134. package/baidu/bundles/angulartics2-baidu.umd.js +0 -98
  135. package/baidu/bundles/angulartics2-baidu.umd.js.map +0 -1
  136. package/baidu/bundles/angulartics2-baidu.umd.min.js +0 -2
  137. package/baidu/bundles/angulartics2-baidu.umd.min.js.map +0 -1
  138. package/baidu/esm2015/angulartics2-baidu.js +0 -5
  139. package/baidu/esm2015/baidu.js +0 -83
  140. package/baidu/fesm2015/angulartics2-baidu.js +0 -88
  141. package/baidu/fesm2015/angulartics2-baidu.js.map +0 -1
  142. package/baidu/package.json +0 -20
  143. package/bundles/angulartics2.umd.js +0 -564
  144. package/bundles/angulartics2.umd.js.map +0 -1
  145. package/bundles/angulartics2.umd.min.js +0 -16
  146. package/bundles/angulartics2.umd.min.js.map +0 -1
  147. package/clicky/angulartics2-clicky.d.ts +0 -4
  148. package/clicky/angulartics2-clicky.metadata.json +0 -1
  149. package/clicky/bundles/angulartics2-clicky.umd.js +0 -80
  150. package/clicky/bundles/angulartics2-clicky.umd.js.map +0 -1
  151. package/clicky/bundles/angulartics2-clicky.umd.min.js +0 -2
  152. package/clicky/bundles/angulartics2-clicky.umd.min.js.map +0 -1
  153. package/clicky/esm2015/angulartics2-clicky.js +0 -5
  154. package/clicky/esm2015/clicky.js +0 -68
  155. package/clicky/fesm2015/angulartics2-clicky.js +0 -72
  156. package/clicky/fesm2015/angulartics2-clicky.js.map +0 -1
  157. package/clicky/package.json +0 -20
  158. package/esm2015/angular-router.js +0 -36
  159. package/esm2015/angulartics2-config.js +0 -19
  160. package/esm2015/angulartics2-core.js +0 -89
  161. package/esm2015/angulartics2-interfaces.js +0 -1
  162. package/esm2015/angulartics2-token.js +0 -3
  163. package/esm2015/angulartics2.js +0 -5
  164. package/esm2015/angulartics2On.js +0 -55
  165. package/esm2015/public_api.js +0 -9
  166. package/esm2015/routerless.js +0 -10
  167. package/facebook/angulartics2-facebook.d.ts +0 -4
  168. package/facebook/angulartics2-facebook.metadata.json +0 -1
  169. package/facebook/bundles/angulartics2-facebook.umd.js +0 -62
  170. package/facebook/bundles/angulartics2-facebook.umd.js.map +0 -1
  171. package/facebook/bundles/angulartics2-facebook.umd.min.js +0 -2
  172. package/facebook/bundles/angulartics2-facebook.umd.min.js.map +0 -1
  173. package/facebook/esm2015/angulartics2-facebook.js +0 -5
  174. package/facebook/esm2015/facebook.js +0 -47
  175. package/facebook/fesm2015/angulartics2-facebook.js +0 -52
  176. package/facebook/fesm2015/angulartics2-facebook.js.map +0 -1
  177. package/facebook/package.json +0 -20
  178. package/fesm2015/angulartics2.js +0 -223
  179. package/fesm2015/angulartics2.js.map +0 -1
  180. package/ga/angulartics2-ga.d.ts +0 -4
  181. package/ga/angulartics2-ga.metadata.json +0 -1
  182. package/ga/bundles/angulartics2-ga.umd.js +0 -600
  183. package/ga/bundles/angulartics2-ga.umd.js.map +0 -1
  184. package/ga/bundles/angulartics2-ga.umd.min.js +0 -16
  185. package/ga/bundles/angulartics2-ga.umd.min.js.map +0 -1
  186. package/ga/esm2015/angulartics2-ga.js +0 -5
  187. package/ga/esm2015/ga.js +0 -207
  188. package/ga/fesm2015/angulartics2-ga.js +0 -212
  189. package/ga/fesm2015/angulartics2-ga.js.map +0 -1
  190. package/ga/package.json +0 -20
  191. package/ga-enhanced-ecom/angulartics2-ga-enhanced-ecom.d.ts +0 -4
  192. package/ga-enhanced-ecom/angulartics2-ga-enhanced-ecom.metadata.json +0 -1
  193. package/ga-enhanced-ecom/bundles/angulartics2-ga-enhanced-ecom.umd.js +0 -47
  194. package/ga-enhanced-ecom/bundles/angulartics2-ga-enhanced-ecom.umd.js.map +0 -1
  195. package/ga-enhanced-ecom/bundles/angulartics2-ga-enhanced-ecom.umd.min.js +0 -2
  196. package/ga-enhanced-ecom/bundles/angulartics2-ga-enhanced-ecom.umd.min.js.map +0 -1
  197. package/ga-enhanced-ecom/esm2015/angulartics2-ga-enhanced-ecom.js +0 -5
  198. package/ga-enhanced-ecom/esm2015/ga-enhanced-ecom.js +0 -30
  199. package/ga-enhanced-ecom/fesm2015/angulartics2-ga-enhanced-ecom.js +0 -36
  200. package/ga-enhanced-ecom/fesm2015/angulartics2-ga-enhanced-ecom.js.map +0 -1
  201. package/ga-enhanced-ecom/package.json +0 -20
  202. package/gosquared/angulartics2-gosquared.d.ts +0 -4
  203. package/gosquared/angulartics2-gosquared.metadata.json +0 -1
  204. package/gosquared/bundles/angulartics2-gosquared.umd.js +0 -72
  205. package/gosquared/bundles/angulartics2-gosquared.umd.js.map +0 -1
  206. package/gosquared/bundles/angulartics2-gosquared.umd.min.js +0 -2
  207. package/gosquared/bundles/angulartics2-gosquared.umd.min.js.map +0 -1
  208. package/gosquared/esm2015/angulartics2-gosquared.js +0 -5
  209. package/gosquared/esm2015/gosquared.js +0 -57
  210. package/gosquared/fesm2015/angulartics2-gosquared.js +0 -62
  211. package/gosquared/fesm2015/angulartics2-gosquared.js.map +0 -1
  212. package/gosquared/package.json +0 -20
  213. package/gst/angulartics2-gst.d.ts +0 -4
  214. package/gst/angulartics2-gst.metadata.json +0 -1
  215. package/gst/bundles/angulartics2-gst.umd.js +0 -514
  216. package/gst/bundles/angulartics2-gst.umd.js.map +0 -1
  217. package/gst/bundles/angulartics2-gst.umd.min.js +0 -16
  218. package/gst/bundles/angulartics2-gst.umd.min.js.map +0 -1
  219. package/gst/esm2015/angulartics2-gst.js +0 -5
  220. package/gst/esm2015/gst.js +0 -182
  221. package/gst/fesm2015/angulartics2-gst.js +0 -187
  222. package/gst/fesm2015/angulartics2-gst.js.map +0 -1
  223. package/gst/package.json +0 -20
  224. package/gtm/angulartics2-gtm.d.ts +0 -4
  225. package/gtm/angulartics2-gtm.metadata.json +0 -1
  226. package/gtm/bundles/angulartics2-gtm.umd.js +0 -125
  227. package/gtm/bundles/angulartics2-gtm.umd.js.map +0 -1
  228. package/gtm/bundles/angulartics2-gtm.umd.min.js +0 -2
  229. package/gtm/bundles/angulartics2-gtm.umd.min.js.map +0 -1
  230. package/gtm/esm2015/angulartics2-gtm.js +0 -5
  231. package/gtm/esm2015/gtm.js +0 -108
  232. package/gtm/fesm2015/angulartics2-gtm.js +0 -113
  233. package/gtm/fesm2015/angulartics2-gtm.js.map +0 -1
  234. package/gtm/package.json +0 -20
  235. package/hubspot/angulartics2-hubspot.d.ts +0 -4
  236. package/hubspot/angulartics2-hubspot.metadata.json +0 -1
  237. package/hubspot/bundles/angulartics2-hubspot.umd.js +0 -58
  238. package/hubspot/bundles/angulartics2-hubspot.umd.js.map +0 -1
  239. package/hubspot/bundles/angulartics2-hubspot.umd.min.js +0 -2
  240. package/hubspot/bundles/angulartics2-hubspot.umd.min.js.map +0 -1
  241. package/hubspot/esm2015/angulartics2-hubspot.js +0 -5
  242. package/hubspot/esm2015/hubspot.js +0 -43
  243. package/hubspot/fesm2015/angulartics2-hubspot.js +0 -48
  244. package/hubspot/fesm2015/angulartics2-hubspot.js.map +0 -1
  245. package/hubspot/package.json +0 -20
  246. package/ibm-digital-analytics/angulartics2-ibm-digital-analytics.d.ts +0 -4
  247. package/ibm-digital-analytics/angulartics2-ibm-digital-analytics.metadata.json +0 -1
  248. package/ibm-digital-analytics/bundles/angulartics2-ibm-digital-analytics.umd.js +0 -142
  249. package/ibm-digital-analytics/bundles/angulartics2-ibm-digital-analytics.umd.js.map +0 -1
  250. package/ibm-digital-analytics/bundles/angulartics2-ibm-digital-analytics.umd.min.js +0 -2
  251. package/ibm-digital-analytics/bundles/angulartics2-ibm-digital-analytics.umd.min.js.map +0 -1
  252. package/ibm-digital-analytics/esm2015/angulartics2-ibm-digital-analytics.js +0 -5
  253. package/ibm-digital-analytics/esm2015/ibm-digital-analytics.js +0 -127
  254. package/ibm-digital-analytics/fesm2015/angulartics2-ibm-digital-analytics.js +0 -132
  255. package/ibm-digital-analytics/fesm2015/angulartics2-ibm-digital-analytics.js.map +0 -1
  256. package/ibm-digital-analytics/package.json +0 -20
  257. package/intercom/angulartics2-intercom.d.ts +0 -4
  258. package/intercom/angulartics2-intercom.metadata.json +0 -1
  259. package/intercom/bundles/angulartics2-intercom.umd.js +0 -79
  260. package/intercom/bundles/angulartics2-intercom.umd.js.map +0 -1
  261. package/intercom/bundles/angulartics2-intercom.umd.min.js +0 -2
  262. package/intercom/bundles/angulartics2-intercom.umd.min.js.map +0 -1
  263. package/intercom/esm2015/angulartics2-intercom.js +0 -5
  264. package/intercom/esm2015/intercom.js +0 -64
  265. package/intercom/fesm2015/angulartics2-intercom.js +0 -69
  266. package/intercom/fesm2015/angulartics2-intercom.js.map +0 -1
  267. package/intercom/package.json +0 -20
  268. package/kissmetrics/angulartics2-kissmetrics.d.ts +0 -4
  269. package/kissmetrics/angulartics2-kissmetrics.metadata.json +0 -1
  270. package/kissmetrics/bundles/angulartics2-kissmetrics.umd.js +0 -59
  271. package/kissmetrics/bundles/angulartics2-kissmetrics.umd.js.map +0 -1
  272. package/kissmetrics/bundles/angulartics2-kissmetrics.umd.min.js +0 -2
  273. package/kissmetrics/bundles/angulartics2-kissmetrics.umd.min.js.map +0 -1
  274. package/kissmetrics/esm2015/angulartics2-kissmetrics.js +0 -5
  275. package/kissmetrics/esm2015/kissmetrics.js +0 -44
  276. package/kissmetrics/fesm2015/angulartics2-kissmetrics.js +0 -49
  277. package/kissmetrics/fesm2015/angulartics2-kissmetrics.js.map +0 -1
  278. package/kissmetrics/package.json +0 -23
  279. package/launch/angulartics2-launch.d.ts +0 -4
  280. package/launch/angulartics2-launch.metadata.json +0 -1
  281. package/launch/bundles/angulartics2-launch.umd.js +0 -78
  282. package/launch/bundles/angulartics2-launch.umd.js.map +0 -1
  283. package/launch/bundles/angulartics2-launch.umd.min.js +0 -2
  284. package/launch/bundles/angulartics2-launch.umd.min.js.map +0 -1
  285. package/launch/esm2015/angulartics2-launch.js +0 -5
  286. package/launch/esm2015/launch.js +0 -63
  287. package/launch/fesm2015/angulartics2-launch.js +0 -68
  288. package/launch/fesm2015/angulartics2-launch.js.map +0 -1
  289. package/launch/package.json +0 -20
  290. package/matomo/angulartics2-matomo.d.ts +0 -4
  291. package/matomo/angulartics2-matomo.metadata.json +0 -1
  292. package/matomo/bundles/angulartics2-matomo.umd.js +0 -309
  293. package/matomo/bundles/angulartics2-matomo.umd.js.map +0 -1
  294. package/matomo/bundles/angulartics2-matomo.umd.min.js +0 -2
  295. package/matomo/bundles/angulartics2-matomo.umd.min.js.map +0 -1
  296. package/matomo/esm2015/angulartics2-matomo.js +0 -5
  297. package/matomo/esm2015/matomo.js +0 -294
  298. package/matomo/fesm2015/angulartics2-matomo.js +0 -299
  299. package/matomo/fesm2015/angulartics2-matomo.js.map +0 -1
  300. package/matomo/package.json +0 -20
  301. package/mixpanel/angulartics2-mixpanel.d.ts +0 -4
  302. package/mixpanel/angulartics2-mixpanel.metadata.json +0 -1
  303. package/mixpanel/bundles/angulartics2-mixpanel.umd.js +0 -132
  304. package/mixpanel/bundles/angulartics2-mixpanel.umd.js.map +0 -1
  305. package/mixpanel/bundles/angulartics2-mixpanel.umd.min.js +0 -2
  306. package/mixpanel/bundles/angulartics2-mixpanel.umd.min.js.map +0 -1
  307. package/mixpanel/esm2015/angulartics2-mixpanel.js +0 -5
  308. package/mixpanel/esm2015/mixpanel.js +0 -117
  309. package/mixpanel/fesm2015/angulartics2-mixpanel.js +0 -122
  310. package/mixpanel/fesm2015/angulartics2-mixpanel.js.map +0 -1
  311. package/mixpanel/package.json +0 -20
  312. package/pyze/angulartics2-pyze.d.ts +0 -4
  313. package/pyze/angulartics2-pyze.metadata.json +0 -1
  314. package/pyze/bundles/angulartics2-pyze.umd.js +0 -82
  315. package/pyze/bundles/angulartics2-pyze.umd.js.map +0 -1
  316. package/pyze/bundles/angulartics2-pyze.umd.min.js +0 -2
  317. package/pyze/bundles/angulartics2-pyze.umd.min.js.map +0 -1
  318. package/pyze/esm2015/angulartics2-pyze.js +0 -5
  319. package/pyze/esm2015/pyze.js +0 -67
  320. package/pyze/fesm2015/angulartics2-pyze.js +0 -72
  321. package/pyze/fesm2015/angulartics2-pyze.js.map +0 -1
  322. package/pyze/package.json +0 -20
  323. package/pyze/pyze.d.ts +0 -10
  324. package/routerlessmodule/angulartics2-routerlessmodule.d.ts +0 -4
  325. package/routerlessmodule/angulartics2-routerlessmodule.metadata.json +0 -1
  326. package/routerlessmodule/bundles/angulartics2-routerlessmodule.umd.js +0 -38
  327. package/routerlessmodule/bundles/angulartics2-routerlessmodule.umd.js.map +0 -1
  328. package/routerlessmodule/bundles/angulartics2-routerlessmodule.umd.min.js +0 -2
  329. package/routerlessmodule/bundles/angulartics2-routerlessmodule.umd.min.js.map +0 -1
  330. package/routerlessmodule/esm2015/angulartics2-routerlessmodule.js +0 -5
  331. package/routerlessmodule/esm2015/routerless.module.js +0 -20
  332. package/routerlessmodule/fesm2015/angulartics2-routerlessmodule.js +0 -27
  333. package/routerlessmodule/fesm2015/angulartics2-routerlessmodule.js.map +0 -1
  334. package/routerlessmodule/package.json +0 -20
  335. package/routerlessmodule/routerless.module.d.ts +0 -5
  336. package/segment/angulartics2-segment.d.ts +0 -4
  337. package/segment/angulartics2-segment.metadata.json +0 -1
  338. package/segment/bundles/angulartics2-segment.umd.js +0 -120
  339. package/segment/bundles/angulartics2-segment.umd.js.map +0 -1
  340. package/segment/bundles/angulartics2-segment.umd.min.js +0 -2
  341. package/segment/bundles/angulartics2-segment.umd.min.js.map +0 -1
  342. package/segment/esm2015/angulartics2-segment.js +0 -5
  343. package/segment/esm2015/segment.js +0 -105
  344. package/segment/fesm2015/angulartics2-segment.js +0 -110
  345. package/segment/fesm2015/angulartics2-segment.js.map +0 -1
  346. package/segment/package.json +0 -20
  347. package/splunk/angulartics2-splunk.d.ts +0 -4
  348. package/splunk/angulartics2-splunk.metadata.json +0 -1
  349. package/splunk/bundles/angulartics2-splunk.umd.js +0 -62
  350. package/splunk/bundles/angulartics2-splunk.umd.js.map +0 -1
  351. package/splunk/bundles/angulartics2-splunk.umd.min.js +0 -2
  352. package/splunk/bundles/angulartics2-splunk.umd.min.js.map +0 -1
  353. package/splunk/esm2015/angulartics2-splunk.js +0 -5
  354. package/splunk/esm2015/splunk.js +0 -48
  355. package/splunk/fesm2015/angulartics2-splunk.js +0 -53
  356. package/splunk/fesm2015/angulartics2-splunk.js.map +0 -1
  357. package/splunk/package.json +0 -20
  358. package/splunk/splunk.d.ts +0 -8
  359. package/uiroutermodule/angulartics2-uiroutermodule.d.ts +0 -4
  360. package/uiroutermodule/angulartics2-uiroutermodule.metadata.json +0 -1
  361. package/uiroutermodule/bundles/angulartics2-uiroutermodule.umd.js +0 -76
  362. package/uiroutermodule/bundles/angulartics2-uiroutermodule.umd.js.map +0 -1
  363. package/uiroutermodule/bundles/angulartics2-uiroutermodule.umd.min.js +0 -2
  364. package/uiroutermodule/bundles/angulartics2-uiroutermodule.umd.min.js.map +0 -1
  365. package/uiroutermodule/esm2015/angulartics2-uiroutermodule.js +0 -5
  366. package/uiroutermodule/esm2015/public_api.js +0 -3
  367. package/uiroutermodule/esm2015/uirouter.js +0 -40
  368. package/uiroutermodule/esm2015/uirouter.module.js +0 -21
  369. package/uiroutermodule/fesm2015/angulartics2-uiroutermodule.js +0 -64
  370. package/uiroutermodule/fesm2015/angulartics2-uiroutermodule.js.map +0 -1
  371. package/uiroutermodule/package.json +0 -20
  372. package/uiroutermodule/public_api.d.ts +0 -2
  373. package/uiroutermodule/uirouter.d.ts +0 -17
  374. package/uiroutermodule/uirouter.module.d.ts +0 -5
  375. package/woopra/angulartics2-woopra.d.ts +0 -4
  376. package/woopra/angulartics2-woopra.metadata.json +0 -1
  377. package/woopra/bundles/angulartics2-woopra.umd.js +0 -79
  378. package/woopra/bundles/angulartics2-woopra.umd.js.map +0 -1
  379. package/woopra/bundles/angulartics2-woopra.umd.min.js +0 -2
  380. package/woopra/bundles/angulartics2-woopra.umd.min.js.map +0 -1
  381. package/woopra/esm2015/angulartics2-woopra.js +0 -5
  382. package/woopra/esm2015/woopra.js +0 -64
  383. package/woopra/fesm2015/angulartics2-woopra.js +0 -69
  384. package/woopra/fesm2015/angulartics2-woopra.js.map +0 -1
  385. package/woopra/package.json +0 -20
@@ -1,48 +0,0 @@
1
- import { ɵɵdefineInjectable, ɵɵinject, Injectable } from '@angular/core';
2
- import { Angulartics2 } from 'angulartics2';
3
-
4
- class Angulartics2Hubspot {
5
- constructor(angulartics2) {
6
- this.angulartics2 = angulartics2;
7
- this.angulartics2.setUserProperties
8
- .subscribe((x) => this.setUserProperties(x));
9
- }
10
- startTracking() {
11
- this.angulartics2.pageTrack
12
- .pipe(this.angulartics2.filterDeveloperMode())
13
- .subscribe((x) => this.pageTrack(x.path));
14
- this.angulartics2.eventTrack
15
- .pipe(this.angulartics2.filterDeveloperMode())
16
- .subscribe((x) => this.eventTrack(x.action, x.properties));
17
- }
18
- pageTrack(path) {
19
- if (typeof _hsq !== 'undefined') {
20
- _hsq.push(['setPath', path]);
21
- _hsq.push(['trackPageView']);
22
- }
23
- }
24
- eventTrack(action, properties) {
25
- if (typeof _hsq !== 'undefined') {
26
- _hsq.push(['trackEvent', properties]);
27
- }
28
- }
29
- setUserProperties(properties) {
30
- if (typeof _hsq !== 'undefined') {
31
- _hsq.push(['identify', properties]);
32
- }
33
- }
34
- }
35
- Angulartics2Hubspot.ɵprov = ɵɵdefineInjectable({ factory: function Angulartics2Hubspot_Factory() { return new Angulartics2Hubspot(ɵɵinject(Angulartics2)); }, token: Angulartics2Hubspot, providedIn: "root" });
36
- Angulartics2Hubspot.decorators = [
37
- { type: Injectable, args: [{ providedIn: 'root' },] }
38
- ];
39
- Angulartics2Hubspot.ctorParameters = () => [
40
- { type: Angulartics2 }
41
- ];
42
-
43
- /**
44
- * Generated bundle index. Do not edit.
45
- */
46
-
47
- export { Angulartics2Hubspot };
48
- //# sourceMappingURL=angulartics2-hubspot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angulartics2-hubspot.js","sources":["../../../../src/lib/providers/hubspot/hubspot.ts","../../../../src/lib/providers/hubspot/angulartics2-hubspot.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { Angulartics2 } from 'angulartics2';\n\ndeclare var _hsq: any;\n\n@Injectable({ providedIn: 'root' })\nexport class Angulartics2Hubspot {\n\n constructor(\n private angulartics2: Angulartics2\n ) {\n this.angulartics2.setUserProperties\n .subscribe((x) => this.setUserProperties(x));\n }\n\n startTracking(): void {\n this.angulartics2.pageTrack\n .pipe(this.angulartics2.filterDeveloperMode())\n .subscribe((x) => this.pageTrack(x.path));\n this.angulartics2.eventTrack\n .pipe(this.angulartics2.filterDeveloperMode())\n .subscribe((x) => this.eventTrack(x.action, x.properties));\n }\n\n pageTrack(path: string) {\n if (typeof _hsq !== 'undefined') {\n _hsq.push(['setPath', path]);\n _hsq.push(['trackPageView']);\n }\n }\n\n eventTrack(action: string, properties: any) {\n if (typeof _hsq !== 'undefined') {\n _hsq.push(['trackEvent', properties]);\n }\n }\n\n setUserProperties(properties: any) {\n if (typeof _hsq !== 'undefined') {\n _hsq.push(['identify', properties]);\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './hubspot';\n"],"names":[],"mappings":";;;MAOa,mBAAmB;IAE9B,YACU,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAElC,IAAI,CAAC,YAAY,CAAC,iBAAiB;aAChC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;KAChD;IAED,aAAa;QACX,IAAI,CAAC,YAAY,CAAC,SAAS;aACxB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC;aAC7C,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,CAAC,UAAU;aACzB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC;aAC7C,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC9D;IAED,SAAS,CAAC,IAAY;QACpB,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;YAC7B,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;SAC9B;KACF;IAED,UAAU,CAAC,MAAc,EAAE,UAAe;QACxC,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;SACvC;KACF;IAED,iBAAiB,CAAC,UAAe;QAC/B,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;SACrC;KACF;;;;YApCF,UAAU,SAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;YAJzB,YAAY;;;ACFrB;;;;;;"}
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "../../../../node_modules/ng-packagr/package.schema.json",
3
- "name": "angulartics2/hubspot",
4
- "description": "The hubspot module",
5
- "homepage": "https://angulartics.github.io/angulartics2/",
6
- "author": "João Ribeiro <jonnybgod@gmail.com> (http://github.com/JonnyBGod)",
7
- "repository": "angulartics/angulartics2",
8
- "typings": "angulartics2-hubspot.d.ts",
9
- "license": "MIT",
10
- "main": "bundles/angulartics2-hubspot.umd.js",
11
- "module": "fesm2015/angulartics2-hubspot.js",
12
- "es2015": "fesm2015/angulartics2-hubspot.js",
13
- "esm2015": "esm2015/angulartics2-hubspot.js",
14
- "fesm2015": "fesm2015/angulartics2-hubspot.js",
15
- "metadata": "angulartics2-hubspot.metadata.json",
16
- "sideEffects": false,
17
- "dependencies": {
18
- "tslib": "^2.0.0"
19
- }
20
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './ibm-digital-analytics';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"Angulartics2IBMDigitalAnalytics":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"angulartics2","name":"Angulartics2","line":5,"character":36}]}],"startTracking":[{"__symbolic":"method"}],"pageTrack":[{"__symbolic":"method"}],"eventTrack":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"Angulartics2IBMDigitalAnalytics":"./ibm-digital-analytics"},"importAs":"angulartics2/ibm-digital-analytics"}
@@ -1,142 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('angulartics2')) :
3
- typeof define === 'function' && define.amd ? define('angulartics2/ibm-digital-analytics', ['exports', '@angular/core', 'angulartics2'], factory) :
4
- (global = global || self, factory((global.angulartics2 = global.angulartics2 || {}, global.angulartics2['ibm-digital-analytics'] = {}), global.ng.core, global.angulartics2));
5
- }(this, (function (exports, i0, i1) { 'use strict';
6
-
7
- var Angulartics2IBMDigitalAnalytics = /** @class */ (function () {
8
- function Angulartics2IBMDigitalAnalytics(angulartics2) {
9
- this.angulartics2 = angulartics2;
10
- if (typeof window['cmCreatePageviewTag'] !== 'function') {
11
- console.warn('Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded');
12
- }
13
- }
14
- Angulartics2IBMDigitalAnalytics.prototype.startTracking = function () {
15
- var _this = this;
16
- this.angulartics2.pageTrack
17
- .pipe(this.angulartics2.filterDeveloperMode())
18
- .subscribe(function (x) { return _this.pageTrack(x.path); });
19
- this.angulartics2.eventTrack
20
- .pipe(this.angulartics2.filterDeveloperMode())
21
- .subscribe(function (x) { return _this.eventTrack(x.action, x.properties); });
22
- };
23
- /**
24
- * Track Page in IBM Digital Analytics
25
- *
26
- * @param path location
27
- *
28
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html
29
- */
30
- Angulartics2IBMDigitalAnalytics.prototype.pageTrack = function (path) {
31
- var cmCreatePageviewTag = window['cmCreatePageviewTag'];
32
- cmCreatePageviewTag(path, null, null, null);
33
- };
34
- /**
35
- * Track an event in IBM Digital Analytics
36
- *
37
- * @param action A string corresponding to the type of event that needs to be tracked.
38
- * @param properties The properties that need to be logged with the event.
39
- */
40
- Angulartics2IBMDigitalAnalytics.prototype.eventTrack = function (action, properties) {
41
- if (properties === void 0) { properties = {}; }
42
- var cmDisplayShops = window['cmDisplayShops'];
43
- switch (action) {
44
- /**
45
- * @description The Product View tag captures information about vdigitalDataiews of product detail pages.
46
- * The Product View tag should be called on the lowest level detail page for products, which is typically
47
- * the Product Details page. You can view example Product View tags below.
48
- *
49
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html
50
- */
51
- case 'cmCreateProductviewTag':
52
- var cmCreateProductviewTag = window['cmCreateProductviewTag'];
53
- cmCreateProductviewTag(properties.productId, properties.productName, properties.categoryId, properties.attrbute, properties.virtualCategory);
54
- break;
55
- /**
56
- * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,
57
- * if any, when the cart is viewed.
58
- *
59
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html
60
- */
61
- case 'cmCreateShopAction5Tag':
62
- var cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];
63
- cmCreateShopAction5Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.categoryId, properties.attrbute, properties.extraFields, properties.virtualCategory);
64
- cmDisplayShops();
65
- break;
66
- /**
67
- * @description The Shop Action 9 tag captures data about what products were purchased by a customer.
68
- * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent
69
- * on the receipt or other completion page confirming a successful order.
70
- *
71
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html
72
- */
73
- case 'cmCreateShopAction9Tag':
74
- var cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];
75
- cmCreateShopAction9Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.registrationId, properties.orderId, properties.orderSubtotal, properties.categoryId, properties.attrbute, properties.extraFields);
76
- cmDisplayShops();
77
- break;
78
- /**
79
- * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,
80
- * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.
81
- *
82
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html
83
- */
84
- case 'cmCreateOrderTag':
85
- var cmCreateOrderTag = window['cmCreateOrderTag'];
86
- cmCreateOrderTag(properties.orderId, properties.orderSubtotal, properties.orderShipping, properties.registrationId, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.attrbute, properties.extraFields);
87
- break;
88
- /**
89
- * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single
90
- * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.
91
- *
92
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html
93
- */
94
- case 'cmCreateRegistrationTag':
95
- var cmCreateRegistrationTag = window['cmCreateRegistrationTag'];
96
- cmCreateRegistrationTag(properties.registrationId, properties.registrantEmail, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.registrantCountry, properties.attrbute);
97
- break;
98
- /**
99
- * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by
100
- * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.
101
- *
102
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html
103
- */
104
- case 'cmCreateElementTag':
105
- var cmCreateElementTag = window['cmCreateElementTag'];
106
- cmCreateElementTag(properties.elementId, properties.elementCategory, properties.attrbute);
107
- break;
108
- /**
109
- * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.
110
- * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.
111
- * This tag and the reports it populates enable analysis of a wide variety of site activities.
112
- *
113
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html
114
- */
115
- case 'cmCreateConversionEventTag':
116
- var cmCreateConversionEventTag = window['cmCreateConversionEventTag'];
117
- cmCreateConversionEventTag(properties.eventId, properties.actionType, properties.eventCategoryId, properties.points, properties.attrbute, properties.extraFields);
118
- break;
119
- default:
120
- console.warn('Unsupported Event Action');
121
- }
122
- };
123
- return Angulartics2IBMDigitalAnalytics;
124
- }());
125
- Angulartics2IBMDigitalAnalytics.ɵprov = i0.ɵɵdefineInjectable({ factory: function Angulartics2IBMDigitalAnalytics_Factory() { return new Angulartics2IBMDigitalAnalytics(i0.ɵɵinject(i1.Angulartics2)); }, token: Angulartics2IBMDigitalAnalytics, providedIn: "root" });
126
- Angulartics2IBMDigitalAnalytics.decorators = [
127
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
128
- ];
129
- Angulartics2IBMDigitalAnalytics.ctorParameters = function () { return [
130
- { type: i1.Angulartics2 }
131
- ]; };
132
-
133
- /**
134
- * Generated bundle index. Do not edit.
135
- */
136
-
137
- exports.Angulartics2IBMDigitalAnalytics = Angulartics2IBMDigitalAnalytics;
138
-
139
- Object.defineProperty(exports, '__esModule', { value: true });
140
-
141
- })));
142
- //# sourceMappingURL=angulartics2-ibm-digital-analytics.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angulartics2-ibm-digital-analytics.umd.js","sources":["../../../../src/lib/providers/ibm-digital-analytics/ibm-digital-analytics.ts","../../../../src/lib/providers/ibm-digital-analytics/angulartics2-ibm-digital-analytics.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Angulartics2 } from 'angulartics2';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class Angulartics2IBMDigitalAnalytics {\r\n constructor(private angulartics2: Angulartics2) {\r\n if (typeof window['cmCreatePageviewTag'] !== 'function') {\r\n console.warn(\r\n 'Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded',\r\n );\r\n }\r\n }\r\n\r\n startTracking(): void {\r\n this.angulartics2.pageTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.pageTrack(x.path));\r\n this.angulartics2.eventTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.eventTrack(x.action, x.properties));\r\n }\r\n\r\n /**\r\n * Track Page in IBM Digital Analytics\r\n *\r\n * @param path location\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html\r\n */\r\n pageTrack(path: string) {\r\n const cmCreatePageviewTag = window['cmCreatePageviewTag'];\r\n cmCreatePageviewTag(path, null, null, null);\r\n }\r\n\r\n /**\r\n * Track an event in IBM Digital Analytics\r\n *\r\n * @param action A string corresponding to the type of event that needs to be tracked.\r\n * @param properties The properties that need to be logged with the event.\r\n */\r\n eventTrack(action: string, properties: any = {}) {\r\n const cmDisplayShops = window['cmDisplayShops'];\r\n switch (action) {\r\n /**\r\n * @description The Product View tag captures information about vdigitalDataiews of product detail pages.\r\n * The Product View tag should be called on the lowest level detail page for products, which is typically\r\n * the Product Details page. You can view example Product View tags below.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html\r\n */\r\n case 'cmCreateProductviewTag':\r\n const cmCreateProductviewTag = window['cmCreateProductviewTag'];\r\n cmCreateProductviewTag(\r\n properties.productId,\r\n properties.productName,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.virtualCategory,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,\r\n * if any, when the cart is viewed.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html\r\n */\r\n case 'cmCreateShopAction5Tag':\r\n const cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];\r\n cmCreateShopAction5Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n properties.virtualCategory,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 9 tag captures data about what products were purchased by a customer.\r\n * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent\r\n * on the receipt or other completion page confirming a successful order.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html\r\n */\r\n case 'cmCreateShopAction9Tag':\r\n const cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];\r\n cmCreateShopAction9Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.registrationId,\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,\r\n * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html\r\n */\r\n case 'cmCreateOrderTag':\r\n const cmCreateOrderTag = window['cmCreateOrderTag'];\r\n cmCreateOrderTag(\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.orderShipping,\r\n properties.registrationId,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single\r\n * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html\r\n */\r\n case 'cmCreateRegistrationTag':\r\n const cmCreateRegistrationTag = window['cmCreateRegistrationTag'];\r\n cmCreateRegistrationTag(\r\n properties.registrationId,\r\n properties.registrantEmail,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.registrantCountry,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by\r\n * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html\r\n */\r\n case 'cmCreateElementTag':\r\n const cmCreateElementTag = window['cmCreateElementTag'];\r\n cmCreateElementTag(\r\n properties.elementId,\r\n properties.elementCategory,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.\r\n * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.\r\n * This tag and the reports it populates enable analysis of a wide variety of site activities.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html\r\n */\r\n case 'cmCreateConversionEventTag':\r\n const cmCreateConversionEventTag = window['cmCreateConversionEventTag'];\r\n cmCreateConversionEventTag(\r\n properties.eventId,\r\n properties.actionType,\r\n properties.eventCategoryId,\r\n properties.points,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n default:\r\n console.warn('Unsupported Event Action');\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './ibm-digital-analytics';\n"],"names":["Injectable","Angulartics2"],"mappings":";;;;;;;QAKE,yCAAoB,YAA0B;YAA1B,iBAAY,GAAZ,YAAY,CAAc;YAC5C,IAAI,OAAO,MAAM,CAAC,qBAAqB,CAAC,KAAK,UAAU,EAAE;gBACvD,OAAO,CAAC,IAAI,CACV,wEAAwE,CACzE,CAAC;aACH;SACF;QAED,uDAAa,GAAb;YAAA,iBAOC;YANC,IAAI,CAAC,YAAY,CAAC,SAAS;iBACxB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC;iBAC7C,SAAS,CAAC,UAAA,CAAC,IAAI,OAAA,KAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAA,CAAC,CAAC;YAC1C,IAAI,CAAC,YAAY,CAAC,UAAU;iBACzB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC;iBAC7C,SAAS,CAAC,UAAA,CAAC,IAAI,OAAA,KAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,GAAA,CAAC,CAAC;SAC5D;;;;;;;;QASD,mDAAS,GAAT,UAAU,IAAY;YACpB,IAAM,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAC1D,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAC7C;;;;;;;QAQD,oDAAU,GAAV,UAAW,MAAc,EAAE,UAAoB;YAApB,2BAAA,EAAA,eAAoB;YAC7C,IAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;YAChD,QAAQ,MAA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AAc,EACzB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,oBAAoB,EAC/B,UAAU,CAAC,QAAQ,EACnB,UAAU,CAAC,WAAW,CACvB,CAAC;oBAEF,MAAM;;;;;;;gBAQR,KAAK,yBAAyB;oBAC5B,IAAM,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;oBAClE,uBAAuB,CACrB,UAAU,CAAC,cAAc,EACzB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,cAAc,EACzB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,oBAAoB,EAC/B,UAAU,CAAC,iBAAiB,EAC5B,UAAU,CAAC,QAAQ,CACpB,CAAC;oBAEF,MAAM;;;;;;;gBAQR,KAAK,oBAAoB;oBACvB,IAAM,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;oBACxD,kBAAkB,CAChB,UAAU,CAAC,SAAS,EACpB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,QAAQ,CACpB,CAAC;oBAEF,MAAM;;;;;;;;gBASR,KAAK,4BAA4B;oBAC/B,IAAM,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;oBACxE,0BAA0B,CACxB,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,UAAU,EACrB,UAAU,CAAC,eAAe,EAC1B,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,QAAQ,EACnB,UAAU,CAAC,WAAW,CACvB,CAAC;oBAEF,MAAM;gBAER;oBACE,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;aAC5C;SACF;;;;;gBA7LFA,aAAU,SAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;gBAFzBC,eAAY;;;ICDrB;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("angulartics2")):"function"==typeof define&&define.amd?define("angulartics2/ibm-digital-analytics",["exports","@angular/core","angulartics2"],e):e(((t=t||self).angulartics2=t.angulartics2||{},t.angulartics2["ibm-digital-analytics"]={}),t.ng.core,t.angulartics2)}(this,(function(t,e,r){"use strict";var a=function(){function t(t){this.angulartics2=t,"function"!=typeof window.cmCreatePageviewTag&&console.warn("Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded")}return t.prototype.startTracking=function(){var t=this;this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe((function(e){return t.pageTrack(e.path)})),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe((function(e){return t.eventTrack(e.action,e.properties)}))},t.prototype.pageTrack=function(t){(0,window.cmCreatePageviewTag)(t,null,null,null)},t.prototype.eventTrack=function(t,e){void 0===e&&(e={});var r=window.cmDisplayShops;switch(t){case"cmCreateProductviewTag":(0,window.cmCreateProductviewTag)(e.productId,e.productName,e.categoryId,e.attrbute,e.virtualCategory);break;case"cmCreateShopAction5Tag":(0,window.cmCreateShopAction5Tag)(e.productId,e.productName,e.quantity,e.unitPrice,e.categoryId,e.attrbute,e.extraFields,e.virtualCategory),r();break;case"cmCreateShopAction9Tag":(0,window.cmCreateShopAction9Tag)(e.productId,e.productName,e.quantity,e.unitPrice,e.registrationId,e.orderId,e.orderSubtotal,e.categoryId,e.attrbute,e.extraFields),r();break;case"cmCreateOrderTag":(0,window.cmCreateOrderTag)(e.orderId,e.orderSubtotal,e.orderShipping,e.registrationId,e.registrantCity,e.registrantState,e.registrantPostalCode,e.attrbute,e.extraFields);break;case"cmCreateRegistrationTag":(0,window.cmCreateRegistrationTag)(e.registrationId,e.registrantEmail,e.registrantCity,e.registrantState,e.registrantPostalCode,e.registrantCountry,e.attrbute);break;case"cmCreateElementTag":(0,window.cmCreateElementTag)(e.elementId,e.elementCategory,e.attrbute);break;case"cmCreateConversionEventTag":(0,window.cmCreateConversionEventTag)(e.eventId,e.actionType,e.eventCategoryId,e.points,e.attrbute,e.extraFields);break;default:console.warn("Unsupported Event Action")}},t}();a.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new a(e.ɵɵinject(r.Angulartics2))},token:a,providedIn:"root"}),a.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[{type:r.Angulartics2}]},t.Angulartics2IBMDigitalAnalytics=a,Object.defineProperty(t,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=angulartics2-ibm-digital-analytics.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/providers/ibm-digital-analytics/ibm-digital-analytics.ts"],"names":["Angulartics2IBMDigitalAnalytics","angulartics2","this","window","console","warn","prototype","startTracking","_this","pageTrack","pipe","filterDeveloperMode","subscribe","x","path","eventTrack","action","properties","cmCreatePageviewTag","cmDisplayShops","cmCreateProductviewTag","productId","productName","categoryId","attrbute","virtualCategory","cmCreateShopAction5Tag","quantity","unitPrice","extraFields","cmCreateShopAction9Tag","registrationId","orderId","orderSubtotal","cmCreateOrderTag","orderShipping","registrantCity","registrantState","registrantPostalCode","cmCreateRegistrationTag","registrantEmail","registrantCountry","cmCreateElementTag","elementId","elementCategory","cmCreateConversionEventTag","eventId","actionType","eventCategoryId","points","Injectable","args","providedIn","Angulartics2"],"mappings":"0aAKE,SAAAA,EAAoBC,GAAAC,KAAAD,aAAAA,EAC2B,mBAAlCE,OAA4B,qBACrCC,QAAQC,KACN,iFAKNL,EAAAM,UAAAC,cAAA,WAAA,IAAAC,EAAAN,KACEA,KAAKD,aAAaQ,UACfC,KAAKR,KAAKD,aAAaU,uBACvBC,WAAU,SAAAC,GAAK,OAAAL,EAAKC,UAAUI,EAAEC,SACnCZ,KAAKD,aAAac,WACfL,KAAKR,KAAKD,aAAaU,uBACvBC,WAAU,SAAAC,GAAK,OAAAL,EAAKO,WAAWF,EAAEG,OAAQH,EAAEI,gBAUhDjB,EAAAM,UAAAG,UAAA,SAAUK,IAERI,EAD4Bf,OAA4B,qBACpCW,EAAM,KAAM,KAAM,OASxCd,EAA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AAA","sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Angulartics2 } from 'angulartics2';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class Angulartics2IBMDigitalAnalytics {\r\n constructor(private angulartics2: Angulartics2) {\r\n if (typeof window['cmCreatePageviewTag'] !== 'function') {\r\n console.warn(\r\n 'Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded',\r\n );\r\n }\r\n }\r\n\r\n startTracking(): void {\r\n this.angulartics2.pageTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.pageTrack(x.path));\r\n this.angulartics2.eventTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.eventTrack(x.action, x.properties));\r\n }\r\n\r\n /**\r\n * Track Page in IBM Digital Analytics\r\n *\r\n * @param path location\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html\r\n */\r\n pageTrack(path: string) {\r\n const cmCreatePageviewTag = window['cmCreatePageviewTag'];\r\n cmCreatePageviewTag(path, null, null, null);\r\n }\r\n\r\n /**\r\n * Track an event in IBM Digital Analytics\r\n *\r\n * @param action A string corresponding to the type of event that needs to be tracked.\r\n * @param properties The properties that need to be logged with the event.\r\n */\r\n eventTrack(action: string, properties: any = {}) {\r\n const cmDisplayShops = window['cmDisplayShops'];\r\n switch (action) {\r\n /**\r\n * @description The Product View tag captures information about vdigitalDataiews of product detail pages.\r\n * The Product View tag should be called on the lowest level detail page for products, which is typically\r\n * the Product Details page. You can view example Product View tags below.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html\r\n */\r\n case 'cmCreateProductviewTag':\r\n const cmCreateProductviewTag = window['cmCreateProductviewTag'];\r\n cmCreateProductviewTag(\r\n properties.productId,\r\n properties.productName,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.virtualCategory,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,\r\n * if any, when the cart is viewed.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html\r\n */\r\n case 'cmCreateShopAction5Tag':\r\n const cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];\r\n cmCreateShopAction5Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n properties.virtualCategory,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 9 tag captures data about what products were purchased by a customer.\r\n * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent\r\n * on the receipt or other completion page confirming a successful order.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html\r\n */\r\n case 'cmCreateShopAction9Tag':\r\n const cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];\r\n cmCreateShopAction9Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.registrationId,\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,\r\n * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html\r\n */\r\n case 'cmCreateOrderTag':\r\n const cmCreateOrderTag = window['cmCreateOrderTag'];\r\n cmCreateOrderTag(\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.orderShipping,\r\n properties.registrationId,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single\r\n * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html\r\n */\r\n case 'cmCreateRegistrationTag':\r\n const cmCreateRegistrationTag = window['cmCreateRegistrationTag'];\r\n cmCreateRegistrationTag(\r\n properties.registrationId,\r\n properties.registrantEmail,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.registrantCountry,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by\r\n * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html\r\n */\r\n case 'cmCreateElementTag':\r\n const cmCreateElementTag = window['cmCreateElementTag'];\r\n cmCreateElementTag(\r\n properties.elementId,\r\n properties.elementCategory,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.\r\n * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.\r\n * This tag and the reports it populates enable analysis of a wide variety of site activities.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html\r\n */\r\n case 'cmCreateConversionEventTag':\r\n const cmCreateConversionEventTag = window['cmCreateConversionEventTag'];\r\n cmCreateConversionEventTag(\r\n properties.eventId,\r\n properties.actionType,\r\n properties.eventCategoryId,\r\n properties.points,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n default:\r\n console.warn('Unsupported Event Action');\r\n }\r\n }\r\n}\r\n"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './ibm-digital-analytics';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcnRpY3MyLWlibS1kaWdpdGFsLWFuYWx5dGljcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvcHJvdmlkZXJzL2libS1kaWdpdGFsLWFuYWx5dGljcy9hbmd1bGFydGljczItaWJtLWRpZ2l0YWwtYW5hbHl0aWNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx5QkFBeUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pYm0tZGlnaXRhbC1hbmFseXRpY3MnO1xuIl19
@@ -1,127 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { Angulartics2 } from 'angulartics2';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "angulartics2";
5
- export class Angulartics2IBMDigitalAnalytics {
6
- constructor(angulartics2) {
7
- this.angulartics2 = angulartics2;
8
- if (typeof window['cmCreatePageviewTag'] !== 'function') {
9
- console.warn('Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded');
10
- }
11
- }
12
- startTracking() {
13
- this.angulartics2.pageTrack
14
- .pipe(this.angulartics2.filterDeveloperMode())
15
- .subscribe(x => this.pageTrack(x.path));
16
- this.angulartics2.eventTrack
17
- .pipe(this.angulartics2.filterDeveloperMode())
18
- .subscribe(x => this.eventTrack(x.action, x.properties));
19
- }
20
- /**
21
- * Track Page in IBM Digital Analytics
22
- *
23
- * @param path location
24
- *
25
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html
26
- */
27
- pageTrack(path) {
28
- const cmCreatePageviewTag = window['cmCreatePageviewTag'];
29
- cmCreatePageviewTag(path, null, null, null);
30
- }
31
- /**
32
- * Track an event in IBM Digital Analytics
33
- *
34
- * @param action A string corresponding to the type of event that needs to be tracked.
35
- * @param properties The properties that need to be logged with the event.
36
- */
37
- eventTrack(action, properties = {}) {
38
- const cmDisplayShops = window['cmDisplayShops'];
39
- switch (action) {
40
- /**
41
- * @description The Product View tag captures information about vdigitalDataiews of product detail pages.
42
- * The Product View tag should be called on the lowest level detail page for products, which is typically
43
- * the Product Details page. You can view example Product View tags below.
44
- *
45
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html
46
- */
47
- case 'cmCreateProductviewTag':
48
- const cmCreateProductviewTag = window['cmCreateProductviewTag'];
49
- cmCreateProductviewTag(properties.productId, properties.productName, properties.categoryId, properties.attrbute, properties.virtualCategory);
50
- break;
51
- /**
52
- * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,
53
- * if any, when the cart is viewed.
54
- *
55
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html
56
- */
57
- case 'cmCreateShopAction5Tag':
58
- const cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];
59
- cmCreateShopAction5Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.categoryId, properties.attrbute, properties.extraFields, properties.virtualCategory);
60
- cmDisplayShops();
61
- break;
62
- /**
63
- * @description The Shop Action 9 tag captures data about what products were purchased by a customer.
64
- * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent
65
- * on the receipt or other completion page confirming a successful order.
66
- *
67
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html
68
- */
69
- case 'cmCreateShopAction9Tag':
70
- const cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];
71
- cmCreateShopAction9Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.registrationId, properties.orderId, properties.orderSubtotal, properties.categoryId, properties.attrbute, properties.extraFields);
72
- cmDisplayShops();
73
- break;
74
- /**
75
- * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,
76
- * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.
77
- *
78
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html
79
- */
80
- case 'cmCreateOrderTag':
81
- const cmCreateOrderTag = window['cmCreateOrderTag'];
82
- cmCreateOrderTag(properties.orderId, properties.orderSubtotal, properties.orderShipping, properties.registrationId, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.attrbute, properties.extraFields);
83
- break;
84
- /**
85
- * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single
86
- * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.
87
- *
88
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html
89
- */
90
- case 'cmCreateRegistrationTag':
91
- const cmCreateRegistrationTag = window['cmCreateRegistrationTag'];
92
- cmCreateRegistrationTag(properties.registrationId, properties.registrantEmail, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.registrantCountry, properties.attrbute);
93
- break;
94
- /**
95
- * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by
96
- * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.
97
- *
98
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html
99
- */
100
- case 'cmCreateElementTag':
101
- const cmCreateElementTag = window['cmCreateElementTag'];
102
- cmCreateElementTag(properties.elementId, properties.elementCategory, properties.attrbute);
103
- break;
104
- /**
105
- * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.
106
- * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.
107
- * This tag and the reports it populates enable analysis of a wide variety of site activities.
108
- *
109
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html
110
- */
111
- case 'cmCreateConversionEventTag':
112
- const cmCreateConversionEventTag = window['cmCreateConversionEventTag'];
113
- cmCreateConversionEventTag(properties.eventId, properties.actionType, properties.eventCategoryId, properties.points, properties.attrbute, properties.extraFields);
114
- break;
115
- default:
116
- console.warn('Unsupported Event Action');
117
- }
118
- }
119
- }
120
- Angulartics2IBMDigitalAnalytics.ɵprov = i0.ɵɵdefineInjectable({ factory: function Angulartics2IBMDigitalAnalytics_Factory() { return new Angulartics2IBMDigitalAnalytics(i0.ɵɵinject(i1.Angulartics2)); }, token: Angulartics2IBMDigitalAnalytics, providedIn: "root" });
121
- Angulartics2IBMDigitalAnalytics.decorators = [
122
- { type: Injectable, args: [{ providedIn: 'root' },] }
123
- ];
124
- Angulartics2IBMDigitalAnalytics.ctorParameters = () => [
125
- { type: Angulartics2 }
126
- ];
127
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWJtLWRpZ2l0YWwtYW5hbHl0aWNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9wcm92aWRlcnMvaWJtLWRpZ2l0YWwtYW5hbHl0aWNzL2libS1kaWdpdGFsLWFuYWx5dGljcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxjQUFjLENBQUM7OztBQUc1QyxNQUFNLE9BQU8sK0JBQStCO0lBQzFDLFlBQW9CLFlBQTBCO1FBQTFCLGlCQUFZLEdBQVosWUFBWSxDQUFjO1FBQzVDLElBQUksT0FBTyxNQUFNLENBQUMscUJBQXFCLENBQUMsS0FBSyxVQUFVLEVBQUU7WUFDdkQsT0FBTyxDQUFDLElBQUksQ0FDVix3RUFBd0UsQ0FDekUsQ0FBQztTQUNIO0lBQ0gsQ0FBQztJQUVELGFBQW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cbiAgICAgICAqXHJcbiAgICAgICAqIEBsaW5rIGh0dHBzOi8vd3d3LmlibS5jb20vc3VwcG9ydC9rbm93bGVkZ2VjZW50ZXIvU1NQRzlNL0ltcGxlbWVudGF0aW9uL2ltcGxfY29udmVyc2lvbmV2ZW50dGFnLmh0bWxcclxuICAgICAgICovXHJcbiAgICAgIGNhc2UgJ2NtQ3JlYXRlQ29udmVyc2lvbkV2ZW50VGFnJzpcclxuICAgICAgICBjb25zdCBjbUNyZWF0ZUNvbnZlcnNpb25FdmVudFRhZyA9IHdpbmRvd1snY21DcmVhdGVDb252ZXJzaW9uRXZlbnRUYWcnXTtcclxuICAgICAgICBjbUNyZWF0ZUNvbnZlcnNpb25FdmVudFRhZyhcclxuICAgICAgICAgIHByb3BlcnRpZXMuZXZlbnRJZCxcclxuICAgICAgICAgIHByb3BlcnRpZXMuYWN0aW9uVHlwZSxcclxuICAgICAgICAgIHByb3BlcnRpZXMuZXZlbnRDYXRlZ29yeUlkLFxyXG4gICAgICAgICAgcHJvcGVydGllcy5wb2ludHMsXHJcbiAgICAgICAgICBwcm9wZXJ0aWVzLmF0dHJidXRlLFxyXG4gICAgICAgICAgcHJvcGVydGllcy5leHRyYUZpZWxkcyxcclxuICAgICAgICApO1xyXG5cclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgY29uc29sZS53YXJuKCdVbnN1cHBvcnRlZCBFdmVudCBBY3Rpb24nKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
@@ -1,132 +0,0 @@
1
- import { ɵɵdefineInjectable, ɵɵinject, Injectable } from '@angular/core';
2
- import { Angulartics2 } from 'angulartics2';
3
-
4
- class Angulartics2IBMDigitalAnalytics {
5
- constructor(angulartics2) {
6
- this.angulartics2 = angulartics2;
7
- if (typeof window['cmCreatePageviewTag'] !== 'function') {
8
- console.warn('Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded');
9
- }
10
- }
11
- startTracking() {
12
- this.angulartics2.pageTrack
13
- .pipe(this.angulartics2.filterDeveloperMode())
14
- .subscribe(x => this.pageTrack(x.path));
15
- this.angulartics2.eventTrack
16
- .pipe(this.angulartics2.filterDeveloperMode())
17
- .subscribe(x => this.eventTrack(x.action, x.properties));
18
- }
19
- /**
20
- * Track Page in IBM Digital Analytics
21
- *
22
- * @param path location
23
- *
24
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html
25
- */
26
- pageTrack(path) {
27
- const cmCreatePageviewTag = window['cmCreatePageviewTag'];
28
- cmCreatePageviewTag(path, null, null, null);
29
- }
30
- /**
31
- * Track an event in IBM Digital Analytics
32
- *
33
- * @param action A string corresponding to the type of event that needs to be tracked.
34
- * @param properties The properties that need to be logged with the event.
35
- */
36
- eventTrack(action, properties = {}) {
37
- const cmDisplayShops = window['cmDisplayShops'];
38
- switch (action) {
39
- /**
40
- * @description The Product View tag captures information about vdigitalDataiews of product detail pages.
41
- * The Product View tag should be called on the lowest level detail page for products, which is typically
42
- * the Product Details page. You can view example Product View tags below.
43
- *
44
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html
45
- */
46
- case 'cmCreateProductviewTag':
47
- const cmCreateProductviewTag = window['cmCreateProductviewTag'];
48
- cmCreateProductviewTag(properties.productId, properties.productName, properties.categoryId, properties.attrbute, properties.virtualCategory);
49
- break;
50
- /**
51
- * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,
52
- * if any, when the cart is viewed.
53
- *
54
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html
55
- */
56
- case 'cmCreateShopAction5Tag':
57
- const cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];
58
- cmCreateShopAction5Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.categoryId, properties.attrbute, properties.extraFields, properties.virtualCategory);
59
- cmDisplayShops();
60
- break;
61
- /**
62
- * @description The Shop Action 9 tag captures data about what products were purchased by a customer.
63
- * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent
64
- * on the receipt or other completion page confirming a successful order.
65
- *
66
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html
67
- */
68
- case 'cmCreateShopAction9Tag':
69
- const cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];
70
- cmCreateShopAction9Tag(properties.productId, properties.productName, properties.quantity, properties.unitPrice, properties.registrationId, properties.orderId, properties.orderSubtotal, properties.categoryId, properties.attrbute, properties.extraFields);
71
- cmDisplayShops();
72
- break;
73
- /**
74
- * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,
75
- * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.
76
- *
77
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html
78
- */
79
- case 'cmCreateOrderTag':
80
- const cmCreateOrderTag = window['cmCreateOrderTag'];
81
- cmCreateOrderTag(properties.orderId, properties.orderSubtotal, properties.orderShipping, properties.registrationId, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.attrbute, properties.extraFields);
82
- break;
83
- /**
84
- * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single
85
- * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.
86
- *
87
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html
88
- */
89
- case 'cmCreateRegistrationTag':
90
- const cmCreateRegistrationTag = window['cmCreateRegistrationTag'];
91
- cmCreateRegistrationTag(properties.registrationId, properties.registrantEmail, properties.registrantCity, properties.registrantState, properties.registrantPostalCode, properties.registrantCountry, properties.attrbute);
92
- break;
93
- /**
94
- * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by
95
- * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.
96
- *
97
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html
98
- */
99
- case 'cmCreateElementTag':
100
- const cmCreateElementTag = window['cmCreateElementTag'];
101
- cmCreateElementTag(properties.elementId, properties.elementCategory, properties.attrbute);
102
- break;
103
- /**
104
- * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.
105
- * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.
106
- * This tag and the reports it populates enable analysis of a wide variety of site activities.
107
- *
108
- * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html
109
- */
110
- case 'cmCreateConversionEventTag':
111
- const cmCreateConversionEventTag = window['cmCreateConversionEventTag'];
112
- cmCreateConversionEventTag(properties.eventId, properties.actionType, properties.eventCategoryId, properties.points, properties.attrbute, properties.extraFields);
113
- break;
114
- default:
115
- console.warn('Unsupported Event Action');
116
- }
117
- }
118
- }
119
- Angulartics2IBMDigitalAnalytics.ɵprov = ɵɵdefineInjectable({ factory: function Angulartics2IBMDigitalAnalytics_Factory() { return new Angulartics2IBMDigitalAnalytics(ɵɵinject(Angulartics2)); }, token: Angulartics2IBMDigitalAnalytics, providedIn: "root" });
120
- Angulartics2IBMDigitalAnalytics.decorators = [
121
- { type: Injectable, args: [{ providedIn: 'root' },] }
122
- ];
123
- Angulartics2IBMDigitalAnalytics.ctorParameters = () => [
124
- { type: Angulartics2 }
125
- ];
126
-
127
- /**
128
- * Generated bundle index. Do not edit.
129
- */
130
-
131
- export { Angulartics2IBMDigitalAnalytics };
132
- //# sourceMappingURL=angulartics2-ibm-digital-analytics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angulartics2-ibm-digital-analytics.js","sources":["../../../../src/lib/providers/ibm-digital-analytics/ibm-digital-analytics.ts","../../../../src/lib/providers/ibm-digital-analytics/angulartics2-ibm-digital-analytics.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { Angulartics2 } from 'angulartics2';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class Angulartics2IBMDigitalAnalytics {\r\n constructor(private angulartics2: Angulartics2) {\r\n if (typeof window['cmCreatePageviewTag'] !== 'function') {\r\n console.warn(\r\n 'Angulartics 2 IBM Digital Analytics Plugin: eluminate.js is not loaded',\r\n );\r\n }\r\n }\r\n\r\n startTracking(): void {\r\n this.angulartics2.pageTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.pageTrack(x.path));\r\n this.angulartics2.eventTrack\r\n .pipe(this.angulartics2.filterDeveloperMode())\r\n .subscribe(x => this.eventTrack(x.action, x.properties));\r\n }\r\n\r\n /**\r\n * Track Page in IBM Digital Analytics\r\n *\r\n * @param path location\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_pageviewtag.html\r\n */\r\n pageTrack(path: string) {\r\n const cmCreatePageviewTag = window['cmCreatePageviewTag'];\r\n cmCreatePageviewTag(path, null, null, null);\r\n }\r\n\r\n /**\r\n * Track an event in IBM Digital Analytics\r\n *\r\n * @param action A string corresponding to the type of event that needs to be tracked.\r\n * @param properties The properties that need to be logged with the event.\r\n */\r\n eventTrack(action: string, properties: any = {}) {\r\n const cmDisplayShops = window['cmDisplayShops'];\r\n switch (action) {\r\n /**\r\n * @description The Product View tag captures information about vdigitalDataiews of product detail pages.\r\n * The Product View tag should be called on the lowest level detail page for products, which is typically\r\n * the Product Details page. You can view example Product View tags below.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_prodviewtag.html\r\n */\r\n case 'cmCreateProductviewTag':\r\n const cmCreateProductviewTag = window['cmCreateProductviewTag'];\r\n cmCreateProductviewTag(\r\n properties.productId,\r\n properties.productName,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.virtualCategory,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 5 tag captures data about selected products and which products are present in a shopping cart,\r\n * if any, when the cart is viewed.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact5tag.html\r\n */\r\n case 'cmCreateShopAction5Tag':\r\n const cmCreateShopAction5Tag = window['cmCreateShopAction5Tag'];\r\n cmCreateShopAction5Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n properties.virtualCategory,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Shop Action 9 tag captures data about what products were purchased by a customer.\r\n * Like the Shop Action 5 tag, one tag should be sent for each product line item purchased. These tags should be sent\r\n * on the receipt or other completion page confirming a successful order.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_shopact9tag.html\r\n */\r\n case 'cmCreateShopAction9Tag':\r\n const cmCreateShopAction9Tag = window['cmCreateShopAction9Tag'];\r\n cmCreateShopAction9Tag(\r\n properties.productId,\r\n properties.productName,\r\n properties.quantity,\r\n properties.unitPrice,\r\n properties.registrationId,\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.categoryId,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n cmDisplayShops();\r\n\r\n break;\r\n\r\n /**\r\n * @description The Order tag captures order header information such as Registration ID, order ID, order subtotal,\r\n * and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_ordertag.html\r\n */\r\n case 'cmCreateOrderTag':\r\n const cmCreateOrderTag = window['cmCreateOrderTag'];\r\n cmCreateOrderTag(\r\n properties.orderId,\r\n properties.orderSubtotal,\r\n properties.orderShipping,\r\n properties.registrationId,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Registration tag creates a Lifetime Visitor Experience Profile (LIVE Profile) by associating a single\r\n * common Registration ID with the IBM® Digital Analytics permanent cookie set in every browser visiting the tagged site.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_registrationtag.html\r\n */\r\n case 'cmCreateRegistrationTag':\r\n const cmCreateRegistrationTag = window['cmCreateRegistrationTag'];\r\n cmCreateRegistrationTag(\r\n properties.registrationId,\r\n properties.registrantEmail,\r\n properties.registrantCity,\r\n properties.registrantState,\r\n properties.registrantPostalCode,\r\n properties.registrantCountry,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Element tag is used to track intra-page content in IBM® Digital Analytics. Data collected by\r\n * the Element tag is used to populate values in the Element Categories and Top Viewed Elements reports.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_elementtag.html\r\n */\r\n case 'cmCreateElementTag':\r\n const cmCreateElementTag = window['cmCreateElementTag'];\r\n cmCreateElementTag(\r\n properties.elementId,\r\n properties.elementCategory,\r\n properties.attrbute,\r\n );\r\n\r\n break;\r\n\r\n /**\r\n * @description The Conversion Event tag is employed for tracking of general non-commerce conversion events.\r\n * The Conversion Event tag is used to populate values in the Conversion Events Reports and to create Key Segments.\r\n * This tag and the reports it populates enable analysis of a wide variety of site activities.\r\n *\r\n * @link https://www.ibm.com/support/knowledgecenter/SSPG9M/Implementation/impl_conversioneventtag.html\r\n */\r\n case 'cmCreateConversionEventTag':\r\n const cmCreateConversionEventTag = window['cmCreateConversionEventTag'];\r\n cmCreateConversionEventTag(\r\n properties.eventId,\r\n properties.actionType,\r\n properties.eventCategoryId,\r\n properties.points,\r\n properties.attrbute,\r\n properties.extraFields,\r\n );\r\n\r\n break;\r\n\r\n default:\r\n console.warn('Unsupported Event Action');\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './ibm-digital-analytics';\n"],"names":[],"mappings":";;;MAIa,+BAA+B;IAC1C,YAAoB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAC5C,IAAI,OAAO,MAAM,CAAC,qBAAqB,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