This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code block for transformation]export function transformEvent(event) { | |
if (event.event == 'most_recent_coupon') { | |
event.event = 'Latest_Coupon_Code__c'; | |
} | |
if (!event.properties.sale_item) { | |
event.properties.sale_item = false | |
} | |
return event; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
rudderanalytics = window.rudderanalytics = []; | |
var methods = [ | |
"load", | |
"page", | |
"track", | |
"identify", | |
"alias", | |
"group", | |
"ready", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: [ | |
{ | |
hid: 'Rudder-JS', | |
src: 'http://cdn.rudderlabs.com/v1/rudder-analytics.min.js', | |
defer: true | |
}, | |
{ | |
hid: 'rudder-js', | |
innerHTML: ` | |
rudderanalytics = window.rudderanalytics = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
const search = () => { | |
window.rudderanalytics.page(); | |
window.rudderanalytics.track("Track Event."); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"globalUserId": "XYJ458907432AAC", | |
"userFirstName": "Rudder", | |
"userLastName": "Stack", | |
"userEmail": "contact@rudderstack.com", | |
"eventType": "newsletter-sign-up” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"globalUserId": "XYJ458907432AAC", | |
"userId": "XXXXXXXXXXX", | |
"userFirstName": "XXXXXX", | |
"userLastName": "XXXXX", | |
"userEmail": "XXXXXXX@XXXXXXXXXXX.XXX", | |
"userSSN": "XXX-XX-XXXX", | |
"eventType": "newsletter-sign-up” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"globalUserId": "XYJ458907432AAC", | |
"userId": "contactUser", | |
"userFirstName": "Rudder", | |
"userLastName": "Stack", | |
"userEmail": "XXXXXXX@XXXXXXXXXXX.XXX", | |
"userSSN": "XXX-XX-XXXX", | |
"eventType": "newsletter-sign-up” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"globalUserId": "XYJ458907432AAC", | |
"userId": "contactUser", | |
"userFirstName": "Rudder", | |
"userLastName": "Stack", | |
"userEmail": "contact@rudderstack.com", | |
"userSSN": "123-45-6789", | |
"eventType": "newsletter-sign-up” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { | |
if ([@"getBatteryLevel" isEqualToString:call.method]) { | |
result(@(99)); | |
} else { | |
result(FlutterMethodNotImplemented); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar { | |
FlutterMethodChannel* channel = [FlutterMethodChannel | |
methodChannelWithName:@"org.rudderstack.dev/battery" | |
binaryMessenger:[registrar messenger]]; | |
BatteryLevelPlugin* instance = [[BatteryLevelPlugin alloc] init]; | |
[registrar addMethodCallDelegate:instance channel:channel]; | |
} |
NewerOlder