Multiple Google Calendars, script to change calendars based on event name - google-calendar-api

I am trying to create a work around for Google not allowing anyone to add to a global calendar, so I started doing research and found eventbot, which allows me to add a meeting based on an email that I send.
Here is what I imagine, but I don't know how to work it.
I have two different global calendars
Using a QR Code and that email address eventbot gave me, the code is scanned, the type in the needed subject line, and the event is created on my personal calendar.
Here comes where I am in need of advice:
Each event will have a phrase (Sisters/Brothers), if my calendar sees the word "Sisters", it will change the default calendar from my personal to the "Sisters" Calendar, or "Brothers" same thing.
It seems like a simple enough task, I am just not familiar enough with Google to know where to start, or to put my script in my google account. I also don't know if there is an API I could use.
Has anyone else thought of this? Any ideas on where to begin?

I found something that works better for me and is a better approch, but doesn't answer my original question:
http://librariansonthefly.blogspot.com/2013/12/creating-google-calendar-appointments.html

Related

Get campaign name from LinkedIn API

I am trying to get in touch with LinkedIn support for the past month now, unfortunately I had no luck getting to the dev team through the account management.
We are using a reporting tool to pull LinkedIn campaign data via their API. We would like to pull Campaign Names which doesn't seem to be possible at the moment referencing https://developer.linkedin.com/docs/ref/v2/ads/adcampaigns#get
However, is there any kind of way to retrieve the Campaign Names (ID is making it really hard for us to identify campaigns on the fly)? It seems like such a basic request, I find it hard to believe LinkedIn has no way of doing this.
Thanks in advance!!
A little further down that page you referenced is a section called "FINDER" with this:
https://api.linkedin.com/v2/adCampaignsV2?q=statuses&statuses=ACTIVE
Options are ACTIVE, PAUSED, ARCHIVED, COMPLETED, OR CANCELLED
You will get the "name":"MY_CAMPAIGN_NAME" field there. That's the only place I've found it so far.

Wondering how to achieve this (sharing WP page via email and tracking it)

So the following which I'm writing is just to discuss whether something like this is even possible or if any of you would have any better ideas/suggestions or understanding how this might work. I thank anyone who takes time to read this in advance and I hope I don't explain myself too incoherently:
Let's say I have a page in WordPress which has a little bit of text and a video. Basicly I would like to share that page's link or I'd want to forward that page via e-mail to a certain group of people (let's say 10-50 specifically chosen people) and I want to track who of them opened the link and for how long they were on the page or watched the video.
I would like to make this happen in a way that I wouldn't have to make 50 different pages or 50 different URLs for each person (or 50 different tracking strings for that matter). Or that I wouldn't have to take a newsletter-mailer type page in between this process.
Basicly, I would like to make the sharing/forwarding and analytics overview process as easy as possible, so that an admin or moderator wouldn't have to check too many different pages to get the info.
I really appreciate any and all feedback.
[Also really sorry if I posted this in the wrong place. Please feel free to redirect me to a corresponding slot].
Technically, Google Analytics isn't meant to be used to track this specifically- it's typically meant to track groups of anonymized users. That being said, it is capable of doing this (but may not be as automated as you had hoped).
You are correct in thinking that you'd either need to duplicate the pages or create multiple different campaign URLs.
The other thing to keep in mind is that as emails are forwarded, there is no way to update the URL after the email has been sent, so if you email me and I forward it to someone else who clicks through, you're going to think someone else is me.
One way around this would be if you know your users IP addresses (not only is that a big "if", but it can also be spoofed), or some other uniquely identifying feature (any chance these people have signed-up through your website and have actual user IDs? That'd make things infinitely easier!).
Maybe you could customize the email to add their email address as a query string? That could still require a lot of work (and you couldn't just share a single link).
Now, you can not store personally identifiable info in GA (including IP and email addresses), but at the server-level you could assign a custom dimension with a uniquely generated ID and send that to GA. Now you've got all the info you need!
Unfortunately this method only works if you can detect some kind of "fingerprint" of your users.
Unfortunately what you described isn't quite what Google Analytics was designed to do. If you wanted to get into detailed user-specific tracking, I'd advise you look into a CRM. Those systems are designed specifically for user tracking as you described.
Hope that gets you pointed in the right direction.

Google Analytics custom variables, data fed via URL

I've been asked to set-up some custom variables but as I'm new to it, have no idea on how to get started. I have researched as much as I can but am getting confused.
Here's what I need to do:
An app generates a unique URL in the form http://www.example.com/folder/?userID=12345&BookTitle=ABCDE&DateAndTime=201208080800. I then need the custom variables from the URL ('UserID',
'BookTitle' and 'DateAndTime') to be passed to Google Analytics so I can track which users of the app are visiting the page at that URL.
I've looked into setting up custom variables but don't understand if I need 3 separate lines of code for the 3 separate variables nor how I can pass the various elements of the URL through to these.
Can anyone shed any light on how I might go about doing this?
Many thanks for any help in advance.
-Jack
Never mind. It turns out this kind of usage is against Google Analytics' TOS.
Going about it a different way by asking the user for some info up-front instead.
Google's ToS has changed. You can do this now as long as the UserID is internal to you and cannot be used to identify the customer (by Google).

Google Analytics One Page Order Form

Having looked through the questions already on SO, I can't seem to find the answer on how to track a form that has multiple steps on one page. I saw an example that Google gives but could not really understand the way they were presenting it. What we have is a one page order form and need to track the users that come from a website and end up ordering. the whole ordering process is done with one file so I don't know how to track whether or not someone has actually completed the order. Any help would be great, even directing me to better examples than what Google has shown to me.
Thank you
Rob
Just call the JS function _gaq.push([trackPageview,'/form/stepXX']); each time the process reaches a new step.
You can pass any text string you want as a parameter.
Then you can configure a Goal and a funnel in GA with all the major steps of process
You can also track Events in case of errors for example.
(this uses the GA Async syntax)

How to post calendar event to participant's specific calendar

I am working Calendar API (Java).
My specific requirement is I want to add participant to event and at the same time want to specify the participants calendar.
Let us say I have 2 users. User-A and User-B
User-A is creating calendar event and adding User-B as participant
User-A's calendar is Cal-A and User-B's calendar is Cal-B.
Now when User-A adds User-B as participant, an event is created in User-B's calendar but is created in his/her static calendar. Is there is a way, how I can specify (using java api) that the invitation/ event created by User-B should go into User-B's Calendar-B?
Note: in the applicaiton program, I have access to both User-A' calendar and User-B's calendar.
Thanks in advance.
I believe the short answer is no...
Google Calendar, regardless of the API or the language you use, is based on the iCalendar standard, which, from my readings of it, does not have the concept of "Invite a participant and post event invitation on this specific calendar of that participant." If I'm wrong, the quickest way to get your answer and prove me wrong is to find evidence of such a feature in the iCalendar documentation.
I thought I had a workaround, which is "Hey, if you have access to person-B's calendar, why not just create the event on their calendar and add person-A as an attendee?" I did this by sharing one of my sub-calendars of one of my Google Calendar accounts with another. But sure enough, you get the same problem in reverse. Now person-B has the event in the right place, but person-A has it on their default calendar.
So depending on which is your "primary" account, you may want to go that route, but I'm guessing you find that about as appealing as what you're dealing with already.
The only other workaround I found (which was not all that great), is you can access Person-B's calendar and copy the invite to another calendar (the one you want), and then delete it from the main calendar. This will work (I tried it), but obviously it's not as graceful as what you had in mind. If you need specifics on how to copy/delete or how to access a specific non-default calendar, let me know and I'll post some examples.
It is possible (even if the solution isn't nice). If the person knows the ID of your other calendar (which is a valid email address), he can send the invitation to the email address. The ID can be found in the settings of the calendar and has the form ...#group.calendar.google.com.
Have a look at my other answer at a similar question for a list of drawbacks of this solution.

Resources