Plant roots represent an important food source for soil-dwelling animals, but tracking herbivore food choices below-ground is difficult. Here, we present an optimized PCR assay for the detection of plant DNA in the guts of invertebrates, using general plant primers targeting the trnT-F chloroplast DNA region. Based on this assay, we assessed the influence of plant identity on the detectability of ingested plant DNA in Agriotes click beetle larvae. Six different plant species were fed to the insects, comprising a grass, a legume and four nonlegume forbs. Moreover, we examined whether it is possible to amplify DNA of decaying plants and if DNA of decayed plant food is detectable in the guts of the larvae. DNA of the ingested roots could be detected in the guts of the larvae for up to 72-h post-feeding, the maximum digestion time tested. When fed with living plants, DNA detection rates differed significantly between the plant species. This may be ascribed to differences in the amount of plant tissue consumed, root palatability, root morphology and/or secondary plant components. These findings indicate that plant identity can affect post-feeding DNA detection success, which needs to be considered for the interpretation of molecularly derived feeding rates on plants. Amplification of plant DNA from decaying plants was possible as long as any tissue could be retrieved from the soil. The consumption of decaying plant tissue could also be verified by our assay, but the insects seemed to prefer fresh roots over decaying plant material.