首页 \ 问答 \ 如何使用Piwik的Javascript跟踪客户端以及angulartics?(How to use Piwik's Javascript's tracking client along with angulartics?)

如何使用Piwik的Javascript跟踪客户端以及angulartics?(How to use Piwik's Javascript's tracking client along with angulartics?)

由于我正在跟踪angularjs单页移动应用程序(以及跟踪实现的新功能),因此我添加了angulartics模块来执行视图/虚拟页面跟踪。 我的分析提供商是Piwik。 我想知道,尽管我实施了angulartics.piwik模块,其他piwik javascript客户端方法是否仍然有用?:

跟踪目标( _paq.push(['trackGoal', 1]);

自定义变量( _paq.push(['setCustomVariable', , ,]);

和所有其他方法?


Since I'm tracking an angularjs single page mobile app (and new to tracking implementation), I included the angulartics module to perform views/virtualpages tracking. My analytics provider is Piwik. I was wondering if, despite the fact that I implemented the angulartics.piwik module, will the other piwik javascript client methods still work?:

tracking goals (_paq.push(['trackGoal', 1]);)

custom variables(_paq.push(['setCustomVariable', , ,]);)

and all of the other methods?


原文:https://stackoverflow.com/questions/31021992
更新时间:2021-11-23 11:11

最满意答案

显然有一个maven依赖发送推送到GCM(不是离子推送)

毕竟我的应用程序将使用GCM,因为它是免费的,并与各种Ionic服务分开。

虽然这不是发送到Ionic API的答案,但也许在somme摆弄之后,您可以将URL设置为Ionic Push API。

Maven依赖:

<dependency>
<groupId>com.ganyo</groupId>
<artifactId>gcm-server</artifactId>
<version>1.0.2</version>
</dependency>

链接到教程: http//viveksoni.net/sending-gcm-notification-from-server-spring-framework-java/


Apparently there is a maven dependency for sending push to GCM (not Ionic Push)

After all my app will use GCM because it's free and separate from the various Ionic Services.

While this is NOT the answer for sending to Ionic API, maybe after somme fiddling you can set the URL to Ionic Push API.

Maven dependency :

<dependency>
<groupId>com.ganyo</groupId>
<artifactId>gcm-server</artifactId>
<version>1.0.2</version>
</dependency>

link to tutorial : http://viveksoni.net/sending-gcm-notification-from-server-spring-framework-java/

相关问答

更多