Collecting User Feedback in Unity (Google Forms & Email)

  Рет қаралды 8,010

Matthew Ventures

Matthew Ventures

Күн бұрын

Using Google Forms and Emails we can collect expert user feedback! This tutorial covers opening a user's client email program as well as two ways to direct data to Google Forms!
Text version (and source code!): www.mrventures....
0:30 - Motivation
3:37 - Opening an email client
8:12 - Google Forms

Пікірлер: 67
@matthewventures
@matthewventures 3 жыл бұрын
Note from a viewer: It does not work anymore. They changed the encoding and the input field does not have any "entry.XXXXX" Response: Nice catch, looks like they updated it. If you search the string of your question prompt, you should be able to find two numbers adjacent to it within the data-params section. Try these and let me know if one works so I can update the guide. i.gyazo.com/549274db4eaa68b29d8b54466e4ec016.mp4
@PierLucaLanzi
@PierLucaLanzi 3 жыл бұрын
Another way is to go to the form and ask to generate a link to the precompiled form which shows the entry.XXXXXX fields.
@MayerKel
@MayerKel 3 жыл бұрын
I was able to get this working by taking the second string of numbers and adding "entry." in front of it. Ex: data-params="%.@.[787940535,"Feedback",null,1,[[963183514,[],false,[],[],null,null ... is input as: private const string kGFormEntryID = "entry.963183514"; --- Thanks for the tutorial -- Please feel free to update it on your website to help others out.
@nareshbisht7620
@nareshbisht7620 2 жыл бұрын
How can i attach a file?
@VBFilms
@VBFilms 2 жыл бұрын
@@nareshbisht7620 Did you figure out how to attach files? I'm about to start trying that out.
@alright4422
@alright4422 2 жыл бұрын
I was just looking to learn how to send an email in C#, but what I learned in this video is really ten times better. Well done! Clean and helpful.
@johnodonnell2495
@johnodonnell2495 4 жыл бұрын
This tutorial is criminally under-seen. Sending students your way you legend!
@Kshesho
@Kshesho 4 жыл бұрын
I really can't thank you enough for this. You've provided me with an invaluable tool.
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
These tutorials are truly the best I have seen in a while. Definitely earned my sub right there!!!
@acwestmountain
@acwestmountain 3 жыл бұрын
For anyone having issues finding the entry ID. You do not need to download an extension as mentioned in the video. Using Chrome you can right click and Inspect instead of View Page Source. Then click that window and CTRL/CMD + F and search for entry.
@Tymon0000
@Tymon0000 2 жыл бұрын
To get the Entry IDs you need to go to the 3 dots in the top right corner and "Get pre-filled link". After you fill out the form you get a link with entry IDs in the URL string.
@matthewventures
@matthewventures 2 жыл бұрын
Thanks for the tips
@Kshesho
@Kshesho 4 жыл бұрын
ATTENTION: If you have G-Suite, make sure you go to the settings in the top right of your form, and un-check "Restrict to users in [Your Organization Name] and its trusted organizations." I was debugging for days until I found out that was why my forms weren't populating.
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
Man you should have sooo many more subscribers!!!!
@argarevata642
@argarevata642 3 жыл бұрын
Thankyou really works for me
@jonasvirsila4179
@jonasvirsila4179 4 жыл бұрын
The send feedback doesn't work! When I press the button, the feedback doesn't appear in my email account. I set the email and the OpenLink correctly but the submit button didn't response to it.
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
When I search "entry" in the page source, the entry id doesn't appear. If I go back and add for example a multiple choice question and a linear scale question, the IDs appear for them, but still not for the short or long text questions?
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
I solved the issue!!! In the latest versions of the page source Google has removed the "entry.xxxxxxxxxx" field (at least for me). My solution was to add and use a browser extension called Quick Source Viewer (free). So I clicked on the tab with the response, then on the Quick Source Viewer icon on the top right of your browser. That will open another window with what I think is an "extended" version of the page source where you can search "entry" as he did in the video. That will get you the IDs
@Kshesho
@Kshesho 4 жыл бұрын
@@georgeoutters5657 Thanks so much for posting this! I had the same issue.
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
@@Kshesho No problem!
@jacnail
@jacnail 4 жыл бұрын
@@georgeoutters5657 Thanks! I plan to create multiple choices in Unity through toggles and sending the selected text label to google forms... but without success (I'm a total newbie). How did you achieve that? would you mind sharing an example to that? Thanks in advance
@georgeoutters5657
@georgeoutters5657 4 жыл бұрын
@@jacnail I am sorry but I have no idea. You are going to have to search that up or figure it out by yourself somehow :)
@phxJohn2010
@phxJohn2010 4 жыл бұрын
Good tutorial, thanks. A follow up question- if you can push data to a Google sheet using the api and the entry key, could you do the opposite and pull data from the sheet into your app?
@matthewventures
@matthewventures 4 жыл бұрын
Hello Johnathan, thank you for watching! I have just made a tutorial on this topic for you, please let me know if that works: kzbin.info/www/bejne/pJqynKqVmL94n68
@bleeeehding7664
@bleeeehding7664 4 жыл бұрын
Very good tutorial! Thank you. Do you know if it's possible to have the game and the form () open in the same webpage, and populate one field of the form?
@matthewventures
@matthewventures 4 жыл бұрын
I'm sorry I would have no idea how to do that
@TheMidgettortoise
@TheMidgettortoise 4 жыл бұрын
Hi, trying to create a survey with both a text output (as shown in your tutorial). But on top of this a radio button with 4 multiple choice options. I understand that I would need to test to see which toggle button 'is on' but I don't know how I would grab that information in the script and send it to google forms, Thanks.
@matthewventures
@matthewventures 4 жыл бұрын
Well there is probably a way. I would imagine that the questions on the script for radio buttons are also tied to their entry IDs. You have to experiment a bit to figure out how to get that to work. Or even if you are collecting the information through a radio button on Unity, you can save the answer as a string question as far as Google is concerned. Usually I combine all of the unity responses into one string which is comma separated and then I submit that for a single question on a Google form.
@Quekbi
@Quekbi 4 жыл бұрын
Nice tutorial, but i have a www.error : "HTTP/1.1 400 Bad Request " I can't find where's my problem, do you have an idea ?
@matthewventures
@matthewventures 4 жыл бұрын
I'm sorry, I'm not sure.
@brennangregoryhatton8511
@brennangregoryhatton8511 3 жыл бұрын
I am getting this too. Did you find a solution?
@brennangregoryhatton8511
@brennangregoryhatton8511 3 жыл бұрын
I figured this out, at least for my case. It could be that your forum isnt using the long-paragraph format of questions. I was using short answer and mutli-choice.
@uzairsiddiq8895
@uzairsiddiq8895 4 жыл бұрын
i copy entry ID ( entry.762982184 of Email field) now where i can paste it in script there is only one entry Id's option that i already paste for entry ID ( Name entry.1510126941) so what to do where can i paste entry id's in script
@uzairsiddiq8895
@uzairsiddiq8895 4 жыл бұрын
I have a 5 field in google form (NAME,DESIGNATION,EMAIL,COMPANY,PHONE) then what to change in code?
@matthewventures
@matthewventures 4 жыл бұрын
That's not a problem, you'll just have to locate the ids for each of those input fields and send them over individually. In my experience, it's easier to use one form and group values (maybe comma separated) but both approaches are viable!
@uzairsiddiq8895
@uzairsiddiq8895 4 жыл бұрын
@@matthewventures can u plz share screen shot of what you are saying , if possible uzairsiddiq935@gmail.com i did'nt get it
@Kshesho
@Kshesho 4 жыл бұрын
When I separate my questions into sections, I only get the entry IDs for the questions in the first section when I view the page's source, regardless of which section I'm currently on when I click "view page source". Any thoughts?
@matthewventures
@matthewventures 4 жыл бұрын
I'm sorry, I'm not sure how to do that. Google maybe separates responses into two pages so you may have to do the whole process twice?
@Kshesho
@Kshesho 4 жыл бұрын
@@matthewventures No worries. I'll figure something out. Either way, I appreciate the response.
@Kshesho
@Kshesho 4 жыл бұрын
@@matthewventures I discovered something that you may be interested in. I don't know what happens, but when you include a file upload as any of your question on the Google Form, the responses that are supposed to be sent just don't go through. Made me think there was a bug in my code, but then I just removed the file upload questions and the answers went through.
@BlueGooGames
@BlueGooGames 3 жыл бұрын
KZbin just keeps throwing me your videos and they all answer any questions I have for our game. Thanks a lot :) DM me on Twitter if you can, @bluegoogames. I’d like to talk about translations :)
@peacepeace9462
@peacepeace9462 27 күн бұрын
Has anyone tried sending data to Google Forms in 2024? It doesn't work anymore. Has Google Forms blocked or restricted something?
@peacepeace9462
@peacepeace9462 27 күн бұрын
It has been resolved. I needed to be logged into my Google account in Google Forms to find the correct share link (the link ends with "formResponse").
@mrnobody607
@mrnobody607 4 жыл бұрын
Hello is there anyway to find the entry in the page source in 2020? Because it is not showing up on my end.
@matthewventures
@matthewventures 4 жыл бұрын
Sorry I can't look into this atm.
@chrishofmann4564
@chrishofmann4564 4 жыл бұрын
Hey, I had the same issue. I solved it by doing this: Click on the input field of the form as if you're going to type your response, right click on the input field and select "Inspect" from here you can use the search bar directly under that panel to find the "entry".
@mrnobody607
@mrnobody607 4 жыл бұрын
@@chrishofmann4564 Thank youuu so much man!! you are awesome!!
@kristapsemsins961
@kristapsemsins961 4 жыл бұрын
This works great, but for me if I add more entry fields, for some reason, all the answers are populated in all of the fields. Is there someone who has had similar issues?
@matthewventures
@matthewventures 4 жыл бұрын
I'm not sure what that means, if you post ample screenshots of the results and your code I may be able to determine the problem
@kristapsemsins961
@kristapsemsins961 4 жыл бұрын
@@matthewventures Hi, thanks for the reply, I did no expect a reply from you but I appreciate it very much. So here is the code: using System.Collections; using UnityEngine; using UnityEngine.Networking; public class SendToGForm : MonoBehaviour { [SerializeField] private UnityEngine.UI.Text nameData; [SerializeField] private UnityEngine.UI.Text eMailData; [SerializeField] private UnityEngine.UI.Text phoneData; //[SerializeField] private TMPro.TextMeshProUGUI txtData; [SerializeField] private UnityEngine.UI.Button btnSubmit; [SerializeField] private CollectionOption option; private enum CollectionOption { openEmailClient, openGFormLink, sendGFormData }; private const string kReceiverEmailAddress = "me@gmail.com"; private const string kGFormBaseURL = "docs.google.com/forms/d/e/1FAIpQLSe2pBK8CRyV0Eky7KsmBlg_F56H4koRpgEUBZK6SAOAUrAcOw/"; private const string playernameData = "entry.761025825"; private const string playeremailData = "entry.1190565876"; private const string playerphoneData = "entry.733673797"; void Start() { UnityEngine.Assertions.Assert.IsNotNull(nameData); UnityEngine.Assertions.Assert.IsNotNull(eMailData); UnityEngine.Assertions.Assert.IsNotNull(phoneData); UnityEngine.Assertions.Assert.IsNotNull(btnSubmit); btnSubmit.onClick.AddListener(delegate { switch (option) { case CollectionOption.openEmailClient: OpenEmailClient(nameData.text); break; case CollectionOption.openGFormLink: OpenGFormLink(); break; case CollectionOption.sendGFormData: StartCoroutine(SendGFormData(nameData.text)); StartCoroutine(SendGFormData(eMailData.text)); StartCoroutine(SendGFormData(phoneData.text)); break; } }); } private static void OpenEmailClient(string feedback) { string email = kReceiverEmailAddress; string subject = "Feedback"; string body = ""; OpenLink("mailto:" + email + "?subject=" + subject + "&body=" + body); } private static void OpenGFormLink() { string urlGFormView = kGFormBaseURL + "viewform"; OpenLink(urlGFormView); } private static IEnumerator SendGFormData(T dataContainer) { bool isString = dataContainer is string; string jsonData = isString ? dataContainer.ToString() : JsonUtility.ToJson(dataContainer); WWWForm form = new WWWForm(); form.AddField(playernameData, jsonData); form.AddField(playeremailData, jsonData); form.AddField(playerphoneData, jsonData); string urlGFormResponse = kGFormBaseURL + "formResponse"; using (UnityWebRequest www = UnityWebRequest.Post(urlGFormResponse, form)) { yield return www.SendWebRequest(); } } // We cannot have spaces in links for iOS public static void OpenLink(string link) { bool googleSearch = link.Contains("google.com/search"); string linkNoSpaces = link.Replace(" ", googleSearch ? "+" : "%20"); Application.OpenURL(linkNoSpaces); } } Here a screeshot from google forms. imgur.com/a/UAVuuG6
@uzairsiddiq8895
@uzairsiddiq8895 4 жыл бұрын
I created 5 input fields in unity but script only get 1 input field in paragraph format plz help ?
@matthewventures
@matthewventures 4 жыл бұрын
11:05 - 11:30 covers this topic explaining how to identify the correct entry ids if you have several input fields. You must select the entry field directly after the label text of the field you would like.
@matthewventures
@matthewventures 4 жыл бұрын
At 13:22 I delete the extra lines to add additional entries to the form. Just keep a few extra lines there and paste the entry as a string literal instead of using my string variable.
@mishel4932
@mishel4932 4 жыл бұрын
how when i want to go next scene?
@matthewventures
@matthewventures 4 жыл бұрын
Im not sure
@thesinisterdistrictpodcast
@thesinisterdistrictpodcast 5 жыл бұрын
On the thumbnail google is spelled wrong but besides that amazing tutorial love the details
@matthewventures
@matthewventures 5 жыл бұрын
Thank you! I fixed it =)
@Jstantonsmith
@Jstantonsmith 3 жыл бұрын
Great video. I am trying to send a serialized string over to forms. I am getting a response to the correct question in forms but the response is empty. please help...
@matthewventures
@matthewventures 3 жыл бұрын
Hmm could be a limit on the length of the string. Try with shorter strings and see if that's relevant.
@Jstantonsmith
@Jstantonsmith 3 жыл бұрын
@@matthewventures Thanks for the response! I just tried it with a 1 character long string as well as a 5 character long string with no luck.
@Jstantonsmith
@Jstantonsmith 3 жыл бұрын
@@matthewventures I went back and checked with the stock script. My google forms is still coming up with a blank answer even when I type directly into a textmeshpro gui box and submit via a button. It is finding the correct question id and logging a response...but the answer string stays empty.
@matthewventures
@matthewventures 3 жыл бұрын
@@Jstantonsmith hey I'm sorry about that. To help further, I'd have to look at your code. If you would be willing to pay me for my time send an email to matthewXVentures@gmail.com
@uzairsiddiq8895
@uzairsiddiq8895 4 жыл бұрын
code is'nt working for multiple google form fields
@matthewventures
@matthewventures 4 жыл бұрын
My comment explain the process if you're having further trouble please email me your code and information at matthewxventures@gmail.com
Sending Emails in Unity - with Attachments! ( Mailkit + SMTP )
27:24
Matthew Ventures
Рет қаралды 4,5 М.
How to Send an Email or Text Message in C# with Unity
16:43
wolfs cry games
Рет қаралды 15 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,3 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 71 МЛН
Hide your files like a hacker (5 Ways)
19:17
NetworkChuck
Рет қаралды 80 М.
Sending Emails In Unity (Telemetry)
15:48
Matthew Ventures
Рет қаралды 9 М.
Easy Unity Metrics with Google Forms
10:54
Aviel Dardashti
Рет қаралды 259
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Download Google Sheets into Unity!
18:27
Matthew Ventures
Рет қаралды 11 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 13 М.
Twitch integration with Unity Tutorial
10:48
PabloMakes
Рет қаралды 15 М.
The 6 Design Patterns game devs need?
24:20
Jason Weimann
Рет қаралды 368 М.
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,3 МЛН