使用Adobe Analytics构建Ionic

时间:2018-05-30 02:36:45

标签: ionic-framework adobe-analytics

我使用离子框架

我的Ionic和Cordova版本

离子版:3.20.0

Cordova版本:8.0.0

    ↓--------↓cmd instruction↓--------↓

    C:\Users\Lawliet.Lin>i> npm install -g ionic cordova

    C:\Users\Lawliet.Lin>ionic start IonicApp2 tabs

    ? Would you like to integrate your new app with Cordova to target native iOS and Android? Yes

    ? Install the free Ionic Pro SDK and connect your app? No

    C:\Users\Lawliet.Lin>cd IonicApp2

    C:\Users\Lawliet.Lin\IonicApp2>ionic cordova plugin add adobe-mobile-services


    ↑--------↑cmd instruction↑--------↑


Edit

C:\Users\Lawliet.Lin\IonicApp2\src\pages\home\home.html

Add
<button style="height:200px; width:200px" onclick = "window.ADB.trackState('login page', {'user':'john','remember':'true'});">sampleHit</button>

Sample Image

Sample Image

Sample Image

我错过了没有重要的步骤。?

0 个答案:

没有答案