Best practice for add-on items during ecommerce transaction with Google Analytics 4 (GA4) - google-analytics-4

I am looking for the best practice on the following scenario when utilizing ecommerce transaction (purchase) tracking with GA4:
A customer has gone through the entire checkout flow and added a product to their cart. During checkout they add an optional add on (say it's a warranty or what have you.) When you send over the items array for the purchase event, should only the original product in the cart be sent over for tracking or should there now be two items, one for the product and one for the add on that was added in the cart during checkout? Note that this add on could not be purchased individually and is therefore not a standard product someone could purchase (i.e. they can't buy a warranty without also buying the product but they can buy the product without the warranty.)
Ideally answers will include sources for this best practice.
Some other examples:
add a t-shirt to your cart and add on gift wrapping
book a night at a hotel and add on the romance package
purchase a scuba diving tour and add on an extra scuba tank
Thanks in advance!

Always keep some parameters that capture additional information along with the regular Ecommerce event capture.
Example:
EventName: purchase_event
itemName: blue t-shirt
add_on: gift_wrapping | personalized_writeup | No add_on's(this is an additional information to understand how many are using.

Related

Using Paypal (or alternative) so my customers can sell items directly

I've been searching Paypal's products and docs and I can't seen to confirm or deny if Paypal is a solution for what I need, so wanted to ask the community.
I run a web platform for creators to spin up websites. One common request is to create a page for them to sell their merch. I don't want to re-create Shopify/etc.. so have been telling them to go use that and link to their store from their website. But I'm wondering if there's an easy way to give them a very basic store experience using standard Paypal Buy Buttons.
My ideal approach:
Create a ShopItems model and users add items with price, description, shipping cost.
User adds their Paypal merchant ID
I generate a Buy with Paypal button that simply sends info to Paypal about the product being sold, how much to charge, etc..
I dont need any shopping cart functionality, and I dont want to have anything to do with the payment. I just want the end customer to feel like they're purchasing something (not sending someone $ via venmo), and have a place to add their shipping info, etc..
Currently, I see how a user can create accounts in their paypal account and then they're given a specific button for that item, but I'm trying to make this a little simpler where the user creates the product in my system and I just use Paypal for invoice/payment.
Would love any thoughts / ideas.
Integrate a version of PayPal Checkout: https://developer.paypal.com/docs/checkout/
Some sample demo code here: https://developer.paypal.com/demo/checkout/#/pattern/client (use the server version if you need robust payment completion notification -- this requires implementing two routes on your server, one for 'Set Up Transaction' and one for 'Capture Transaction', documented here: https://developer.paypal.com/docs/checkout/reference/server-integration/ )
If you know the merchant ID you're processing transactions for, this can be specified when loading the SDK: https://developer.paypal.com/docs/checkout/reference/customize-sdk/#merchant-id
Whether or not you specify a merchant ID on the SDK line, that same or some other identifier needs to be specified in the purchase_units payee object when setting up the transaction: https://developer.paypal.com/docs/checkout/integration-features/custom-payee/

Paypal buttons integration

Good morning, i have to create a landing page that gives the possibility to the user to book an pay with paypal buttons a limited training course.
Is the a way to make the paypal button interact?
I know that it is the possibility to set a stocking for the single product, but what i need to know is if it is possible to create a grouped product that change the stocking values of the others.
(example: if i buy the product a that has a 25 pieces stock, it will low the stock of the product b too)
thanks
Yes, you can track your inventory with PayPal buttons. Refer to the link below for the guidelines on creating Yes, you can track your inventory with PayPal buttons.
Refer to the link below for the guidelines on creating a button on your account.
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/create_payment_button/
a button on your account.

How to prevent double orders when a pay pal notifications comes in from pay pal but also the web order shows pending?

We have a company that designed our website and we have pay pal standard set up to take payments. It works great except for theres times where there is a double order because the notifications from paypal go to one sales person and another sales guy handles the website orders. The notifications could be from more than just the website so the sales guy doesn't think anything of it when putting in the order and the notification however doesn't update on our website if the order is filed by that sales person and vis versa. Also we run into the issue of the shipping and billing addresses being different and matching them since the website shows who its going to as the main name and the pay pal will show the billing name. Any suggestions on what we can do to make it easier on our sales team?
I would HIGHLY recommend you implement paypal-ipn and process the orders into your system that way. That notice would let you use a program to process the order data into your system and avoid issues like multiple entries, keying errors, etc.

Using a hosted button with quantities for options

I would like to use Paypal in conjunction with a web form for selling conference tickets. Tickets will be available in various types and prices - standard, student, couple.
I would like users to be able to select a variety of tickets in one transaction - for example, two standard tickets and one student ticket.
Ideally I would have Paypal manage the inventory so that people can't make payments when tickets have run out. The limit on tickets is on the total; numbers within categories don't matter.
I can set up a ticket item on Paypal and limit it to the appropriate number, and I can set option prices. What I can't work out is how I send a request to Paypal with more than one "option + quantity" pair selected.
Any help gratefully received!
You would not be able to send more than one option + quantity pair over to PayPal with the standard add to cart or buy now buttons and have PayPal keep track of the inventory. Your best options would be either to set up the inventory on the PayPal side, and use add to cart buttons for each option + quantity.
Another option would be to use the cart upload method, where you pass over all the item details during checkout. This is similar to what 3rd party carts do. They keep track of what the buyer is adding to their cart, and then when they are ready to checkout they simply send all of the details over to PayPal in one POST. With this method, you would have to keep track of the inventory on your end though.

PayPal Adaptive Parallel Payments

Ok here goes:
Hypothetical: Let's say I'm selling digital content online for various freelance artists. The artists submit thier content to my site and I make them available to the public for a fee.
A customer enters the site to buy access to the content. Once the customer pays thru PayPal the payment is automatically split between my business (reciever 1) and the artist (reciever 2) through the use of Parallel Adaptive Payments.
Question: Is it possible to assign some type of "artist ID" to each submitted content that links that artist's content to thier PayPal account so that they are secured payment for each sale while still maintaining payment to the business from each split payment transaction? Keep in mind there will be multiple artists with each artist submitting multiple pieces of content.
I hope I didn't make this more complicated than what it is but if anyone can help with this it would be appreciated. Thanks!
I am not sure I completely understand your question. However, you could pass over a an id in one of the available variables such as item id, custom or etc. If you are trying to get some type of identifier back on your end.