简体   繁体   English

如何自动将新用户添加到AddThis服务以设置分析服务

[英]How to add a new user to AddThis service automatically for setting analytics service

I'm building a web site (Backoffice) that offers a mobile website to my customers. 我正在建立一个网站(Backoffice),向我的客户提供一个移动网站。

the mobile website structure is the same for all users. 所有用户的移动网站结构都是相同的。

I want to add a "Report" tab in the back office, with analytics information using AddThis service, so every user will be able to watch his mobile website statistics. 我想在后台添加一个“报告”标签,其中包含使用AddThis服务的分析信息,因此每个用户都可以观看其移动网站的统计信息。

From what i understand, i need to add the AddThis javascript analytics code to every customers (meaning every mobile website) along with a pubid number. 据我了解,我需要向每个客户(意味着每个移动网站)添加AddThis javascript分析代码以及一个公开编号。

How do I get a new pubid number automatically for every new user that signs in? 如何为每个登录的新用户自动获取一个新的公开编号?

I'm sure there is an easier solution. 我敢肯定有一个更简单的解决方案。

I'm a new developer, I'm developing the back office in C# and the mobile website with jQquery mobile and javascript. 我是一名新开发人员,我正在使用C#和jjquery mobile和javascript开发移动网站。

You can create a new profile for each site and have a new pubid generated. 您可以为每个站点创建一个新的配置文件,并生成一个新的pubid。 Profiles can be created by going to your Settings section and clicking on "Profiles" in the left navigation. 可以通过转到“设置”部分并单击左侧导航栏中的“个人资料”来创建个人资料。 Then you'll be able to query for a site's analytics using their pubid. 然后,您将可以使用网站的发布者查询网站的分析。

Info on profiles: http://support.addthis.com/customer/portal/articles/381216-using-profiles#.UFczpaSXRuo 配置文件信息: http : //support.addthis.com/customer/portal/articles/381216-using-profiles#.UFczpaSXRuo

Info on Analytics API: http://support.addthis.com/customer/portal/articles/381264-addthis-analytics-api#.UFc0MaSXRuo 有关Analytics API的信息: http : //support.addthis.com/customer/portal/articles/381264-addthis-analytics-api#.UFc0MaSXRuo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM