Skip to content

This is the full source of the Celery overlay javascript file that gets loaded when embedding celery.js

License

Notifications You must be signed in to change notification settings

sdebaun/celery-overlay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

celery-overlay

This is the full source of the Celery overlay javascript file that gets loaded when embedding celery.js

Parent Window Callbacks

Celery will check for callback methods attached to your main page. When certain events happen in the Celery checkout process, these callback methods will be fired:

function onCeleryOpen() {
	console.log("Celery opened!");
}
function onCeleryClose() {
	console.log("Celery closed!");
}
function onCeleryOrderPlaced() {
	console.log("Celery placed!");
}

This is good place to put analytics callbacks. For instance:

function onCeleryOrderPlaced() {
    ga('send', 'event', 'preorder', "complete");
}

About

This is the full source of the Celery overlay javascript file that gets loaded when embedding celery.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published