Monday, October 27, 2014

Add Share and like button on Coursebuilder


Result--

Firstly, there already exists google plus share button. But we may also need facebook share button at the same time.
Here is the link to get the customized code from facebook developer page --
https://developers.facebook.com/docs/plugins/like-button
Similarly, the link for google plus button API:
https://developers.google.com/+/web/share/
After getting the code, we put the code at which google plus button puts. It is in the bast.html under the view directory. It includes both the javascript code  and html one.


Another thing should be mention is that we could specify the url link to be liked. But also we could leave it empty, and then it will set the current page link as the sharing URL. This is more adaptive to the course. Because students may just want to share certain unit of content to their friends.

Test sharing current page --












Debug Log -- Operation error: Database is locked when running coursebuilder

Because course builder use sqlite3 as its database, but it can't support the concurrency very well. So when there are two threads to compete on a database, it would create the error message -- Database is locked.

That's the reason why sometime you get the error message like this:

1. One possibility is that you have two coursebuilder courses running with the same ids. So you need to change one of them into different one.

2. Another possibility is that you may need to delete other courses. They may compete resource at the same time. So don't run too many coursebuilder courses in your local computer at the same time. It may trigger the database problems. Even it seems like there is no obvious connections among running courses.


Monday, October 20, 2014

Data Components we have in downloaded data


Firstly, go to Google App Engine, click one of applications:
Secondly, go into the back end management page, You would see data section, and then click datastore viewer:

Thirdly, And then You could do the query you want and see the available data in the site:


Monday, October 13, 2014

Use Google Analytics and Google Tag Manager to get data from Coursebuilder

Lesson, You had better use Google tag manager to implement google analytics. It works!

In Course.yaml, you could find the options to put your own google analytics id and google tag manager id: 

Introduction on Google Tag Manager  ---
Google tag manager would help you manage the tag for your website. Usually, there are 20+ tags in some big website.  They are use to track all kinds of important marketing data.

Use google tag manager to implement google analytics tag management tool!!
  1. Video how to use google tag manage — https://www.youtube.com/watch?v=3HnSmz2ENn8
  2. Webpage on How to use google tag manage ---   https://support.google.com/tagmanager/topic/6062343?hl=en&ref_topic=6063853


Google Analytics --
What is session in google analytics?
https://support.google.com/analytics/answer/2731565?hl=en#terms
A session is a group of interactions that take place on your website within a given time frame. For example a single session can contain multiple screen or page views, events, social interactions, and ecommerce transactions.

A single user can open multiple sessions. Those sessions can occur on the same day, or over several days, weeks, or months. As soon as one session ends, there is then an opportunity to start a new session. There are two methods by which a session ends:
Time-based expiry (including end of day):
After 30 minutes of inactivity
At midnight

Campaign change:
If a user arrives via one campaign, leaves, and then comes back via a different campaign.

What is the bounce rate?

Bounce Rate is the percentage of single-page sessions (i.e. sessions in which the person left your site from the entrance page without interacting with the page).

Another kind of description — 
Bounce rate (sometimes confused with exit rate)[1] is an Internet marketing term used in web traffic analysis. It represents the percentage of visitors who enter the site and "bounce" (leave the site) rather than continue viewing other pages within the same site.

A visitor may bounce by: 
Clicking on a link to a page on a different web site 
Closing an open window or tab 
Typing a new URL 
Clicking the "Back" button to leave the site 
Session timeout  


Other information -- 



How to create forum and announcement in Google Course Builder

Add forum and announcement into coursebuilder


Firstly, In course.yaml, there offers options for us to put our own google group links into Coursebuilder.
So If we want to create forum and announcement, we should start with building two google groups.
As for the details about how to build these two groups, you could see two links:
a.  Discussion Forum --  https://code.google.com/p/course-builder/wiki/WebForums
b. Annoucement -- https://code.google.com/p/course-builder/wiki/CreateEmailList\

Notes:
1. Remember to setting correctly for two groups!

Be careful that announcement is just an email list. So it just allows the owner or managers to post email. 

2. Remember to let all the students to subscribe email list(announcement)

The discussion forum could allow anyone to post even they don't register the class. In that case, people don't need to join(subscribe) the discussion group officially, but still be able to involve in the discussion. 

The email list(Announcement) has to be subscribed before students register the class. 
Put  HTLM notes in register.html page

3. Remember to create organized categories





4. After you create the email list, remember to click sending email button before publishing an announcement.