Skip to main content

Oracle Moat Analytics

Oracle Moat is a measurement and marketing analytics suite designed to help advertisers, publishers, and platforms measure media performance across the breadth of their digital and TV advertising campaigns.

Configuration

AttributeTypeRequiredDescription
enabledbooleanNoEnable the plugin (Defaults to false if no value is given.)
partnerCodestringNoPartner code
import React, { useRef, useEffect, useState } from "react";
import { SafeAreaView, StyleSheet, View } from "react-native";
import { LuraPlayer, type UnifiedPlayer, type Configuration } from "@akta-tech/lura-player-react-native";
import { LuraPlayerControls } from "@akta-tech/lura-player-react-native-ui";

export default function App() {
const playerRef = useRef<UnifiedPlayer>(null);
const config: Configuration = {
...
plugins: {
...
moat: {
enabled: true,
partnerCode: "samplepartnercode123"
}
...
},
...
};
useEffect(() => {
playerRef.current?.setConfig(config)
}, [playerRef]);
return (
<View>
<SafeAreaView />
<LuraPlayer ref={playerRef} style={styles.player}>
<LuraPlayerControls></LuraPlayerControls>
</LuraPlayer>
</View>
);
}

const styles = StyleSheet.create({
player: {
backgroundColor: "#000",
width: "100%",
maxWidth: 640,
aspectRatio: 16 / 9,
},
});