latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Using s2Membership with Google Analytics API

Home Forums Community Forum Using s2Membership with Google Analytics API

This topic contains 5 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 3 months ago.

Topic Author Topic
Posted: Thursday Sep 13th, 2012 at 2:23 pm #25202
Jeff Smith
Username: jas571

Hi, I’m investigating the viability of using s2Member with a plug-in for Google Analytics API functionality. I have a client who wants to convert his site to a membership site and offer his customers access to a basic GA dashboard regarding their own sites that my client builds and/or manages.

Would s2Member be appropriate for this?

Also, have you had other customers do or attempt this and what worked best?

Also, do you know of a good Google Analytics API plug-in for the job or would I need to write my own, and can you foresee any hurdles working with s2Member? I’ve been reading up on the GA API documentation.

My programming skills and experience are solid, however I’m new to web programming and have been drinking a lot lately from the fire hose.

Thanks. Any input appreciated.

-Jeff

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday Sep 14th, 2012 at 12:04 am #25242
Raam Dev
Username: Raam
Staff Member

Hi Jeff,

s2Member is designed to restrict access to front-end WordPress content, not back-end WordPress administrative features. If the dashboard you’re referring to will exist on a WordPress page/post and not on the WordPress Administrative side, then yes, s2Member can be used to restrict access to that post/page.

I don’t personally have any experience with the Google Analytics API or know of any WordPress Plugins for it. You may want to try searching Google.

Posted: Friday Sep 14th, 2012 at 11:50 am #25316
Jeff Smith
Username: jas571

Thanks, Raam. Yes, the dasboard will indeed exist on the WordPress page. I would change it to a simplified 5 choice menu page and from there to a static dashboard page. Security would also be important.

As for the GAPI, I’ve downloaded some samples from Google and am currently working through them. From the above and the limited view I’ve provided so far, do you see any other issues?

Thanks again.

-Jeff

Posted: Saturday Sep 15th, 2012 at 8:45 am #25414

As for the GAPI, I’ve downloaded some samples from Google and am currently working through them. From the above and the limited view I’ve provided so far, do you see any other issues?

Then the GA dashboard is something you’d embed in a WP page, correct? If so, you’d protect the page with s2Member, which would protect the dashboard itself. The embedded dashboard will most probably work fine once the page can be accessed, if I’m not mistaken.

Since each user will have his own GA ID, you can have that ID as a custom profile field and then use PHP or a shortcode to populate that in your GAPI code in the page.

[hilite path]Dashboard -› s2Member® -› General Options -› Registration/Profile Fields[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants[/hilite]

I hope that helps. :)

Posted: Sunday Sep 16th, 2012 at 11:25 pm #25533
Jeff Smith
Username: jas571

Yes, the GA Dashboard would be embedded in a WP page protected by S2Member. Thats the plan. I was considering an expanded schema with additional tables to facilitate users GA info and possibly multiple domains. After checking out your ref to custom profile fields, I can see where that might be a simpler, and superior, approach for at least release 1 of my project.

I envision a pretty simple static dashboard display returned from the Google API. There is obviously a lot I don’t know yet, but my understanding is that I couldn’t use the GAPI for interactive access to the Google Analytics system. And thats fine, because this client, and their users, need only a simple, static display at this point. So, as you stated, and if I understand you correctly, I’ll store the Google Account and profile ID (s) for each customers in custom profile fields. The user will log into s2Member, see a small menu of choices, one of which is a GA Dashboard, and be able to click on it to see their dashboard.

If you think I have any of that wrong, please correct me. And thanks, Cristian!

Posted: Monday Sep 17th, 2012 at 7:18 am #25556

That sounds okay. :)

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.