@@ -98,10 +98,6 @@ export function logClick(event) {
9898 return
9999 }
100100
101- if ( window . Appcues ) {
102- logAppcuesClicks ( )
103- }
104-
105101 // we use closest() so we don't lose clicks on, e.g. icons within a link/button
106102 // (and we have to use $.closest since IE still doesn't have built-in support for it)
107103 if ( target . closest ( 'a' ) . length ) {
@@ -115,44 +111,6 @@ export function logClick(event) {
115111 }
116112}
117113
118- /**
119- * Logs Appcues public events to Mixpanel
120- * https://docs.appcues.com/article/161-javascript-api
121- *
122- * Event prop building borrowed from Terra UI
123- * https://github.com/DataBiosphere/terra-ui/pull/2463/files
124- */
125- function logAppcuesClicks ( ) {
126- window . Appcues . on ( 'all' , ( eventName , event ) => {
127- const eventProps = {
128- 'appcues.flowId' : event . flowId ,
129- 'appcues.flowName' : event . flowName ,
130- 'appcues.flowType' : event . flowType ,
131- 'appcues.flowVersion' : event . flowVersion ,
132- 'appcues.id' : event . id ,
133- 'appcues.interaction.category' : event . interaction ?. category ,
134- 'appcues.interaction.destination' : event . interaction ?. destination ,
135- 'appcues.interaction.element' : event . interaction ?. element ,
136- 'appcues.interaction.fields' : JSON . stringify ( event . interaction ?. fields ) ,
137- 'appcues.interaction.formId' : event . interaction ?. formId ,
138- 'appcues.interaction.text' : event . interaction ?. text , // not documented by Appcues, but observed and useful
139- 'appcues.interactionType' : event . interactionType ,
140- 'appcues.localeId' : event . localeId ,
141- 'appcues.localeName' : event . localeName ,
142- 'appcues.name' : event . name ,
143- 'appcues.sessionId' : event . sessionId ,
144- 'appcues.stepChildId' : event . stepChildId ,
145- 'appcues.stepChildNumber' : event . stepChildNumber ,
146- 'appcues.stepId' : event . stepId ,
147- 'appcues.stepNumber' : event . stepNumber ,
148- 'appcues.stepType' : event . stepType ,
149- 'appcues.timestamp' : event . timestamp
150- }
151- log ( eventName , eventProps )
152- log ( 'appcues:event' , eventProps )
153- } )
154- }
155-
156114/** Log clicks on SVG element of analytics interest */
157115export function logClickOther ( target ) {
158116 const props = {
@@ -522,8 +480,6 @@ export function log(name, props = {}) {
522480
523481 init = Object . assign ( init , body )
524482
525- window . Appcues && window . Appcues . identify ( window . SCP . userId )
526-
527483 if ( ( 'SCP' in window && ! window . SCP . isTest ) || metricsApiMock ) {
528484 const url = `${ bardDomain } /api/event/`
529485 fetch ( url , init ) . then ( response => {
0 commit comments