here are the rules for tokens:
216. Tokens
216.1. Some effects put tokens into play. A token is controlled by whoever put it into play and owned by the controller of the spell or ability that created it. (If no player controlled the effect that created it, the token is owned by whoever put it into play.) The spell or ability may define any number of characteristics for the token. This becomes the token's "text." The characteristics defined this way are functionally equivalent to the characteristics that are printed on a card; for example, they define the token's copiable values. A token doesn't have any characteristics not defined by the spell or ability that created it.
216.1a A spell or ability that creates a creature token sets both its name and its creature type. If the spell or ability doesn't specify the name of the creature token, its name is the same as its creature type(s). A "Goblin Scout creature token," for example, is named "Goblin Scout" and has the creature subtypes Goblin and Scout. Once a token is in play, changing its name doesn't change its creature type, and vice versa.
216.2. A token is subject to anything that affects permanents in general or that affects the token's card type or subtype. A token isn't a card (even if represented by a card that has a _Magic_ back or that came from a _Magic_ booster pack).
216.3. A token in a zone other than the in-play zone ceases to exist. This is a state-based effect. (Note that a token changing zones sets off triggered abilities before the token ceases to exist.)
216.4 A token that has left play can't come back into play. If such a token would return to play, it remains in its current zone instead. It ceases to exist the next time state-based effects are checked.
So, if you read 216.3, if the token would go to the graveyard, it ceases to exist as a token. However, if you had something that said (for example), "whenever a creature goes tot he graveyard you gain 1 life", you would still gain the life from it.