Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to Enable Appcelerator Analytics?

$
0
0

I am trying to get Appcelerator analytics in the community console to work, & I am having no success. I have read the documentation about fifty times, yet the appcelerator console continually tells me "Analytics are not being gathered for this app."

I am using Titanium 3.1.3.GA, building for Android playstore. I have tried to build the app from both the studio & the terminal with the same results.

Any idea what i am doing wrong?

tiapp.xml

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <property name="acs-oauth-secret-production" type="string">XXXXXX</property>
    <property name="acs-oauth-key-production" type="string">XXXXX</property>
    <property name="acs-api-key-production" type="string">XXXXX/property>
    <property name="acs-oauth-secret-development" type="string">XXXXX</property>
    <property name="acs-oauth-key-development" type="string">XXXXX</property>
    <property name="acs-api-key-development" type="string">XXXXX</property>
    <id>XXXXX</id>
    <name>XXXXX</name>
    <version>1.0</version>
    <publisher>markus</publisher>
    <url>http://</url>
    <description>not specified</description>
    <copyright>2013 by markus</copyright>
    <icon>appicon.png</icon>
    <persistent-wifi>false</persistent-wifi>
    <prerendered-icon>false</prerendered-icon>
    <statusbar-style>default</statusbar-style>
    <statusbar-hidden>false</statusbar-hidden>
    <fullscreen>false</fullscreen>
    <navbar-hidden>false</navbar-hidden>
    <analytics>true</analytics>
    <guid>ddc3c2f4-0d3f-40bd-a55e-e13096e4fdde</guid>
    <property name="ti.ui.defaultunit" type="string">system</property>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>19</tool-api-level>
        <manifest>
            <uses-sdk android:maxSdkVersion="19"
                android:minSdkVersion="14" android:targetSdkVersion="19" />
            <application android:theme="@android:style/Theme.Holo.Light.DarkActionBar"/>
        </manifest>
    </android>
    <mobileweb>
        <precache/>
        <splash>
            <enabled>true</enabled>
            <inline-css-images>true</inline-css-images>
        </splash>
        <theme>default</theme>
    </mobileweb>
    <modules>
        <module platform="commonjs">ti.cloud</module>
    </modules>
    <deployment-targets>
        <target device="iphone">false</target>
        <target device="ipad">false</target>
        <target device="android">true</target>
        <target device="blackberry">false</target>
        <target device="mobileweb">false</target>
        <target device="tizen">false</target>
    </deployment-targets>
    <sdk-version>3.1.3.GA</sdk-version>
    <plugins>
        <plugin version="1.0">ti.alloy</plugin>
    </plugins>
</ti:app>
index.js
function init() {
    Ti.Analytics.navEvent("index", {});
}
 
function gotoSubscreen() {
    Alloy.createController("subscreen").getView().open({ animated: true });
}
 
function doTheThing() {
    Ti.Analytics.featureEvent("thething", {});
    alert("Thing Done!");
}
$.index.open();

index.xml

<Alloy>
    <Window class="container" onOpen="init">
        <Label id="label">Hello, World</Label>
        <Button title="Go to Subscreen" onClick="gotoSubscreen" />
        <Button title="Do The Thing" onClick="doTheThing" />
    </Window>
</Alloy>

Thank you for your time.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>