Custom parameters dynamic remarketing - google-ads-api

I'm trying to implement dynamic remarketing for adwords for my ecommerce site. I understand the customer parameters pull from my merchant feed.
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: 'REPLACE_WITH_VALUE',
ecomm_pagetype: 'REPLACE_WITH_VALUE',
ecomm_totalvalue: 'REPLACE_WITH_VALUE',
};
</script>
I think I understand how to put in a value from my merchant feed for prodid and totalvalue but I don't know what to do with pagetype. Any help would be appreciated.
Best,
John

ecomm_pagetype is not supposed to map to your product feed. It's a signal you send to Adwords that will allow you to segment your audience and create list. Recommended values are home, category, product, cart, purchase.
Then in Adwords, you will be able to create lists for product viewers, cart abandoners, past purchasers etc...
You need to pass a fixed value for each page or group of pages on your site.

Related

MS Graph API: How to get webUrl to student submission page for teacher

I can easily get webUrl for the Teams assignment page:
How can I get similar property (or some workaround) for the submission page:
?
I can't see it in properties of the submission.
Thank you!
The webUrl for the student submission page can be achieved with a simple tweak to the requestURL. In the requestURL you can add /submissions after the assignments/{{assignmentID}} to get all the submissions from the teacher's side for the selected assignment.

Dynamic forms rails 6

I'm stuck on something I didn't think would be so difficult. I'm making a fantasy football website for a client. I have a separate table for players and roster. Players being the global pool of available players to choose and the roster being the user's roster where they add available players to their team. For the new roster form, where a player is added to the user's roster, the form expects values such as (in order) position, player_id, name, teamname (user's teamname), user's team_id, user_id. I want a dynamic form where position is selected via a dropdown select_tag or form.select, that selection then populates the player selection drop down to show only players of that position. I cannot seem to get this function to work. Any suggestions?
Update: I finally solved the issue using a separate local form in the new player page and sending the select_tag value to the controller where it became the string for showing only the players at that position. By doing it before the form was rendered the onchange method didn't try to submit the form and everything populated as expected.
If anyone has a similar issue I'd be happy to advise you on it, the specific answer will be depending on your specific set up and requirements.

Google forms gets username from a spreadsheet, and then gives a unique URL for each user

I have users name and ID in a spreadsheet, and I want to send them Google Forms to fill out. However, I want the form to greet each user based on their names and ID from a spreadsheet, and there to be a unique URL for each user.
Finally, I would like the name and ID and other responses in the from to all be saved in a spreadsheet.
Previously, I tried to use the option to get pre-filled link which inserts the values but they can be removed by the user, and replaced with something else. Ideally, I don't want them to have to fill out their names, but I still want it to be saved into a spreadsheet. Also, apart from Google forms, does Microsoft Forms have such an option?
There is no such feature to disable editing of prefilled answers.
You may need to create a web form (posting to the Google Form) with disabled property.
<form method="post" action="https://docs.google.com/forms/u/0/d/e/XXX/formResponse"
<input id="name" name="entry.XXX" disabled>
<script>
const params = new URL(window.location.href).searchParams;
name.value = params.get('name');
</script>

Generate dynamic URL pages basis filter options in Rails

We have a rails app at remote.tools and if you see the product pages (see this page), there are a set of tags associated with each product. I am planning on having filtered search basis these tags on category pages (see this page). Now, I have already tried doing this with the 'Acts-as-taggable' gem and 'Simple-form' (basis this blog).
I am fine with having a page refresh on hitting 'search' or doing it in place (able to do both right now). However, I want to have unique URLs to be created basis the combination of filters applied by the user. For example, if the user selects 'Video communication tools' as the category and 'free trial' and 'easy-to-use' as the tags, the page URL should be '/video-communication-tools-with-free-trial-that-are-easy-to-use'. Currently, the filter options are passed as params i.e. '/search?category=xx&tags=yy'.
Having separate URLs for filter combinations will allow me create unique pages for indexing and add content contextually as well.
How should I go about doing this?
You can use jquery to achieve that,
Something like this.
<script>
$('#search_button').on('click', function(){
window.location = "" + $('#tag1').val()+"-"+$('#tag2').val();
});
</script>
Make sure to add id in your search button. Hope this works for you.

How to pass value captured in URL to middleman page

I want to send emails to prospects with a link to highly customised middleman landing page.
I'll have a spreadsheet with the following columns:
name, company logo, position, etc.
I want my homepage to display the name of the recipient, the logo of the company and other values.
I know that I can create specific url that will pass those values to the landing page but I'm not sure how to do it.
Thanks a lot for guiding me :)

Resources